aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Multilib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Driver/Multilib.cpp')
-rw-r--r--lib/Driver/Multilib.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/Multilib.cpp b/lib/Driver/Multilib.cpp
index 484ce1627d7b..1f5d62f247c4 100644
--- a/lib/Driver/Multilib.cpp
+++ b/lib/Driver/Multilib.cpp
@@ -37,7 +37,7 @@ static void normalizePathSegment(std::string &Segment) {
// Prune trailing "/" or "./"
while (1) {
- StringRef last = *--path::end(seg);
+ StringRef last = path::filename(seg);
if (last != ".")
break;
seg = path::parent_path(seg);