ClangdTests.cpp: Fix a possible typo, it was "if (TmpDir2 != TmpDir2)"
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 27 May 2017 08:06:52 +0000 (08:06 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 27 May 2017 08:06:52 +0000 (08:06 +0000)
It caused failures in unittests if TmpDir2 is not "/tmp" .

llvm-svn: 304067

clang-tools-extra/unittests/clangd/ClangdTests.cpp

index 55235f2..cb11f80 100644 (file)
@@ -120,7 +120,7 @@ IntrusiveRefCntPtr<vfs::FileSystem> getTempOnlyFS() {
 
   std::vector<std::string> TmpDirs;
   TmpDirs.push_back(TmpDir1.str());
-  if (TmpDir2 != TmpDir2)
+  if (TmpDir1 != TmpDir2)
     TmpDirs.push_back(TmpDir2.str());
   return new vfs::FilteredFileSystem(std::move(TmpDirs),
                                      vfs::getRealFileSystem());