mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-23 12:40:17 +00:00
Support/PathV2: Fix append to not add a slash to empty or root paths.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120988 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7eec50bf4f
commit
f150e7695e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user