[llvm-commits] [llvm] r120988 - /llvm/trunk/lib/Support/PathV2.cpp
Michael J. Spencer
bigcheesegs at gmail.com
Sun Dec 5 20:28:23 PST 2010
Author: mspencer
Date: Sun Dec 5 22:28:23 2010
New Revision: 120988
URL: http://llvm.org/viewvc/llvm-project?rev=120988&view=rev
Log:
Support/PathV2: Fix append to not add a slash to empty or root paths.
Modified:
llvm/trunk/lib/Support/PathV2.cpp
Modified: llvm/trunk/lib/Support/PathV2.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/PathV2.cpp?rev=120988&r1=120987&r2=120988&view=diff
==============================================================================
--- llvm/trunk/lib/Support/PathV2.cpp (original)
+++ llvm/trunk/lib/Support/PathV2.cpp Sun Dec 5 22:28:23 2010
@@ -413,7 +413,7 @@
continue;
}
- if (!component_has_sep && !(path.empty() && is_root_name)) {
+ if (!component_has_sep && !(path.empty() || is_root_name)) {
// Add a separator.
path.push_back(prefered_separator);
}
More information about the llvm-commits
mailing list