[llvm-commits] CVS: llvm/lib/System/Unix/Path.cpp
Reid Spencer
reid at x10sys.com
Sun Dec 12 23:51:17 PST 2004
Changes in directory llvm/lib/System/Unix:
Path.cpp updated: 1.19 -> 1.20
---
Log message:
Remove an always false clause from an if statement.
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/System/Unix/Path.cpp
diff -u llvm/lib/System/Unix/Path.cpp:1.19 llvm/lib/System/Unix/Path.cpp:1.20
--- llvm/lib/System/Unix/Path.cpp:1.19 Mon Dec 13 01:41:35 2004
+++ llvm/lib/System/Unix/Path.cpp Mon Dec 13 01:51:07 2004
@@ -290,7 +290,7 @@
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;
More information about the llvm-commits
mailing list