summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix/Path.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-13 07:51:07 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-13 07:51:07 +0000
commita85abc23d5cace29dd3a107685dccf39fba3e534 (patch)
treef9ce4bc942a9189fb052ebfe7e803f29ec8d35d2 /llvm/lib/System/Unix/Path.cpp
parent5b1a05fb7c09ee9d8b085596e08683b78bc15222 (diff)
downloadbcm5719-llvm-a85abc23d5cace29dd3a107685dccf39fba3e534.tar.gz
bcm5719-llvm-a85abc23d5cace29dd3a107685dccf39fba3e534.zip
Remove an always false clause from an if statement.
llvm-svn: 18885
Diffstat (limited to 'llvm/lib/System/Unix/Path.cpp')
-rw-r--r--llvm/lib/System/Unix/Path.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/Unix/Path.cpp b/llvm/lib/System/Unix/Path.cpp
index 4b5ccb93448..6e07427608d 100644
--- a/llvm/lib/System/Unix/Path.cpp
+++ b/llvm/lib/System/Unix/Path.cpp
@@ -290,7 +290,7 @@ Path::setDirectory(const std::string& a_path) {
Path save(*this);
path = a_path;
size_t last = a_path.size() -1;
- if (a_path.size() == 0 || a_path[last] != '/')
+ if (a_path[last] != '/')
path += '/';
if (!isValid()) {
path = save.path;
OpenPOWER on IntegriCloud