diff options
-rw-r--r-- | lib/Support/PathV2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/PathV2.cpp b/lib/Support/PathV2.cpp index 2c1d92d..73896ed 100644 --- 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); } |