diff options
author | Tareq A. Siraj <tareq.a.siraj@intel.com> | 2013-08-12 17:10:49 +0000 |
---|---|---|
committer | Tareq A. Siraj <tareq.a.siraj@intel.com> | 2013-08-12 17:10:49 +0000 |
commit | 225396c2b52a50fa8a781e9a7b5cc81dceae010a (patch) | |
tree | a9ee7f5a6b90dff78abb3d1bb730953a169f63b9 /lib/Support/Path.cpp | |
parent | 809313970fc98bba6f36a332adfa3e5fef4110b3 (diff) | |
download | external_llvm-225396c2b52a50fa8a781e9a7b5cc81dceae010a.tar.gz external_llvm-225396c2b52a50fa8a781e9a7b5cc81dceae010a.tar.bz2 external_llvm-225396c2b52a50fa8a781e9a7b5cc81dceae010a.zip |
Fixes a bug when iterating on paths
This fixes the incorrect implementation of iterating on file/directory
paths.
Differential Review: http://llvm-reviews.chandlerc.com/D1277
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188183 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Path.cpp')
-rw-r--r-- | lib/Support/Path.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Path.cpp b/lib/Support/Path.cpp index cfd9ed6db3..366fb84933 100644 --- a/lib/Support/Path.cpp +++ b/lib/Support/Path.cpp @@ -77,7 +77,7 @@ namespace { return path.substr(0, 1); // * {file,directory}name - size_t end = path.find_first_of(separators, 2); + size_t end = path.find_first_of(separators); return path.substr(0, end); } |