diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-08-03 21:46:33 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-08-03 21:46:33 +0000 |
commit | 6bcf724f52145b9e7fa044c91c6398d0158559f8 (patch) | |
tree | 487ea56ceccb00d74f39581969f63f2debf3f757 /clang/lib/Driver/Multilib.cpp | |
parent | 921c01b5e50b19795b80359a1cbec7b2e760ae2e (diff) | |
download | bcm5719-llvm-6bcf724f52145b9e7fa044c91c6398d0158559f8.tar.gz bcm5719-llvm-6bcf724f52145b9e7fa044c91c6398d0158559f8.zip |
Driver: Simplify a use of the path API
It's a bit more obvious what's going on if we use path::filename
rather than decrementing an iterator here.
llvm-svn: 214668
Diffstat (limited to 'clang/lib/Driver/Multilib.cpp')
-rw-r--r-- | clang/lib/Driver/Multilib.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/Multilib.cpp b/clang/lib/Driver/Multilib.cpp index 484ce1627d7..1f5d62f247c 100644 --- a/clang/lib/Driver/Multilib.cpp +++ b/clang/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); |