diff options
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
-rw-r--r-- | llvm/unittests/Support/CommandLineTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/CommandLineTest.cpp b/llvm/unittests/Support/CommandLineTest.cpp index 57fae85..7d88046 100644 --- a/llvm/unittests/Support/CommandLineTest.cpp +++ b/llvm/unittests/Support/CommandLineTest.cpp @@ -1064,7 +1064,7 @@ TEST(CommandLineTest, ReadConfigFile) { llvm::SmallString<128> CurrDir; std::error_code EC = llvm::sys::fs::current_path(CurrDir); EXPECT_TRUE(!EC); - EXPECT_TRUE(StringRef(CurrDir) != TestDir.path()); + EXPECT_NE(CurrDir.str(), TestDir.path()); llvm::BumpPtrAllocator A; llvm::StringSaver Saver(A); |