[clang] Fix a misadjusted path style comparison in a unittest
authorMartin Storsjö <martin@martin.st>
Fri, 5 Nov 2021 09:28:21 +0000 (11:28 +0200)
committerMartin Storsjö <martin@martin.st>
Thu, 9 Dec 2021 09:47:43 +0000 (11:47 +0200)
This was changed incorrectly by accident in
99023627010bbfefb71e25a2b4d056de1cbd354e.

Differential Revision: https://reviews.llvm.org/D113254

clang/unittests/Driver/ToolChainTest.cpp

index 62ad6f7..286ad84 100644 (file)
@@ -151,7 +151,7 @@ TEST(ToolChainTest, VFSGCCInstallationRelativeDir) {
     llvm::raw_string_ostream OS(S);
     C->getDefaultToolChain().printVerboseInfo(OS);
   }
-  if (is_style_windows(llvm::sys::path::Style::windows))
+  if (is_style_windows(llvm::sys::path::Style::native))
     std::replace(S.begin(), S.end(), '\\', '/');
   EXPECT_EQ("Found candidate GCC installation: "
             "/home/test/bin/../lib/gcc/arm-linux-gnueabi/4.6.1\n"