Fix windows builtbot error.

llvm-svn: 283205
This commit is contained in:
Haojian Wu 2016-10-04 09:49:20 +00:00
parent 67443021a4
commit c6f125e9a5
1 changed files with 2 additions and 0 deletions

View File

@ -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();
}