mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-08 05:26:50 +00:00
Remove an always false clause from an if statement.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18885 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
07941b493d
commit
3d595cba33
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user