projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7eec50b
)
Support/PathV2: Fix append to not add a slash to empty or root paths.
author
Michael J. Spencer
<bigcheesegs@gmail.com>
Mon, 6 Dec 2010 04:28:23 +0000
(
04:28
+0000)
committer
Michael J. Spencer
<bigcheesegs@gmail.com>
Mon, 6 Dec 2010 04:28:23 +0000
(
04:28
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120988
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/PathV2.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/PathV2.cpp
b/lib/Support/PathV2.cpp
index 2c1d92dbcac4e0f70af582e3b0bce0843e5928b4..73896edeccebe9a4783cee4cc1b92fdb3d400e65 100644
(file)
--- a/
lib/Support/PathV2.cpp
+++ b/
lib/Support/PathV2.cpp
@@
-413,7
+413,7
@@
error_code append(SmallVectorImpl<char> &path, const Twine &a,
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);
}