mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
Support/PathV2: Fix append to not add a slash to empty or root paths.
llvm-svn: 120988
This commit is contained in:
parent
61043e9f3a
commit
36a2df800d
@ -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…
x
Reference in New Issue
Block a user