Second attempt to fix clang-move tests broken by r332590 on windows

http://lab.llvm.org:8011/builders/clang-x86-windows-msvc2015/builds/12010

Add back a path conversion removed in a previous attempt. I removed it
because it didn't seem necessary. Added it back to see if this would fix
the bot.

llvm-svn: 332612
This commit is contained in:
Eric Liu 2018-05-17 14:59:15 +00:00
parent a1bee62308
commit 07d4730ca4
1 changed files with 2 additions and 0 deletions

View File

@ -64,6 +64,8 @@ AST_MATCHER_P(CXXMethodDecl, ofOutermostEnclosingClass,
std::string CleanPath(StringRef PathRef) {
llvm::SmallString<128> Path(PathRef);
llvm::sys::path::remove_dots(Path, /*remove_dot_dot=*/true);
// FIXME: figure out why this is necessary.
llvm::sys::path::native(Path);
return Path.str();
}