Remove an always false clause from an if statement.

llvm-svn: 18885
This commit is contained in:
Reid Spencer 2004-12-13 07:51:07 +00:00
parent 5b1a05fb7c
commit a85abc23d5
1 changed files with 1 additions and 1 deletions

View File

@ -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;