forked from OSchip/llvm-project
Remove an always false clause from an if statement.
llvm-svn: 18885
This commit is contained in:
parent
5b1a05fb7c
commit
a85abc23d5
|
@ -290,7 +290,7 @@ Path::setDirectory(const std::string& a_path) {
|
||||||
Path save(*this);
|
Path save(*this);
|
||||||
path = a_path;
|
path = a_path;
|
||||||
size_t last = a_path.size() -1;
|
size_t last = a_path.size() -1;
|
||||||
if (a_path.size() == 0 || a_path[last] != '/')
|
if (a_path[last] != '/')
|
||||||
path += '/';
|
path += '/';
|
||||||
if (!isValid()) {
|
if (!isValid()) {
|
||||||
path = save.path;
|
path = save.path;
|
||||||
|
|
Loading…
Reference in New Issue