aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/VirtualFileSystem.cpp
diff options
context:
space:
mode:
authorTakuya Shimizu <shimizu2486@gmail.com>2023-08-15 19:54:51 +0900
committerTakuya Shimizu <shimizu2486@gmail.com>2023-08-15 19:54:51 +0900
commit5aded521ea94810b81369eaa951dcf59ad5ab82d (patch)
tree1317124129ed59f74669cb0c6d192e1d4b887222 /llvm/lib/Support/VirtualFileSystem.cpp
parent6a1be11b6c08437034207b0ec289040d070e54ae (diff)
downloadllvm-5aded521ea94810b81369eaa951dcf59ad5ab82d.zip
llvm-5aded521ea94810b81369eaa951dcf59ad5ab82d.tar.gz
llvm-5aded521ea94810b81369eaa951dcf59ad5ab82d.tar.bz2
Revert "Reland "[Clang][SemaCXX] Add unused warning for variables declared in condition expressions""
This causes a lot of warning in sanitizer build: https://lab.llvm.org/buildbot/#/builders/258/builds/5424 https://lab.llvm.org/buildbot/#/builders/36/builds/36560 This reverts commit 8e329caa944c377c51ef567d5aa67cfac9ffd0fa.
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
-rw-r--r--llvm/lib/Support/VirtualFileSystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/VirtualFileSystem.cpp b/llvm/lib/Support/VirtualFileSystem.cpp
index e361510..d381d79 100644
--- a/llvm/lib/Support/VirtualFileSystem.cpp
+++ b/llvm/lib/Support/VirtualFileSystem.cpp
@@ -1337,7 +1337,7 @@ std::error_code RedirectingFileSystem::isLocal(const Twine &Path_,
SmallString<256> Path;
Path_.toVector(Path);
- if (makeCanonical(Path))
+ if (std::error_code EC = makeCanonical(Path))
return {};
return ExternalFS->isLocal(Path, Result);