summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang-tools-extra/clang-move/ClangMove.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-move/ClangMove.cpp b/clang-tools-extra/clang-move/ClangMove.cpp
index 69ec412f12d..5aec931dd77 100644
--- a/clang-tools-extra/clang-move/ClangMove.cpp
+++ b/clang-tools-extra/clang-move/ClangMove.cpp
@@ -36,6 +36,7 @@ std::string MakeAbsolutePath(StringRef CurrentDir, StringRef Path) {
llvm::errs() << "Warning: could not make absolute file: '" << EC.message()
<< '\n';
llvm::sys::path::remove_dots(AbsolutePath, /*remove_dot_dot=*/true);
+ llvm::sys::path::native(AbsolutePath);
return AbsolutePath.str();
}
@@ -51,6 +52,7 @@ std::string MakeAbsolutePath(const SourceManager& SM, StringRef Path) {
llvm::errs() << "Warning: could not make absolute file: '" << EC.message()
<< '\n';
llvm::sys::path::remove_dots(AbsolutePath, /*remove_dot_dot=*/true);
+ llvm::sys::path::native(AbsolutePath);
return AbsolutePath.str();
}
OpenPOWER on IntegriCloud