diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp --- a/llvm/lib/Support/Path.cpp +++ b/llvm/lib/Support/Path.cpp @@ -43,7 +43,7 @@ } inline const char *separators(Style style) { - if (real_style(style) == Style::windows) + if (is_style_windows(style)) return "\\/"; return "/"; } @@ -546,7 +546,7 @@ void native(SmallVectorImpl &Path, Style style) { if (Path.empty()) return; - if (real_style(style) == Style::windows) { + if (is_style_windows(style)) { std::replace(Path.begin(), Path.end(), '/', '\\'); if (Path[0] == '~' && (Path.size() == 1 || is_separator(Path[1], style))) { SmallString<128> PathHome; @@ -560,7 +560,7 @@ } std::string convert_to_slash(StringRef path, Style style) { - if (real_style(style) != Style::windows) + if (!is_style_windows(style)) return std::string(path); std::string s = path.str();