summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Path.cpp
diff options
context:
space:
mode:
authorTareq A. Siraj <tareq.a.siraj@intel.com>2013-08-12 17:10:49 +0000
committerTareq A. Siraj <tareq.a.siraj@intel.com>2013-08-12 17:10:49 +0000
commit73537eac3d149f425e1c0febf03c6f2b6562ecbd (patch)
treef948a594a5e51dcf43c184aff1f6886727e0cee7 /llvm/lib/Support/Path.cpp
parentf068d9ff14e78aa7d9b04647ff1783513b8c0370 (diff)
downloadbcm5719-llvm-73537eac3d149f425e1c0febf03c6f2b6562ecbd.tar.gz
bcm5719-llvm-73537eac3d149f425e1c0febf03c6f2b6562ecbd.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 llvm-svn: 188183
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
-rw-r--r--llvm/lib/Support/Path.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp
index cfd9ed6db3d..366fb849338 100644
--- a/llvm/lib/Support/Path.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud