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 | d5699807d5eb810f88559ef49fe6333ad584f9cb (patch) | |
tree | 66951da31be93251a8098ed526846e4ce746bd3f /lib/Driver/Multilib.cpp | |
parent | 27cfbead23da48dfb89a243478e86803386e900f (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214668 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Multilib.cpp')
-rw-r--r-- | lib/Driver/Multilib.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/Multilib.cpp b/lib/Driver/Multilib.cpp index 484ce1627d..1f5d62f247 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); |