From 5aded521ea94810b81369eaa951dcf59ad5ab82d Mon Sep 17 00:00:00 2001 From: Takuya Shimizu Date: Tue, 15 Aug 2023 19:54:51 +0900 Subject: 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. --- llvm/lib/Support/VirtualFileSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support/VirtualFileSystem.cpp') diff --git a/llvm/lib/Support/VirtualFileSystem.cpp b/llvm/lib/Support/VirtualFileSystem.cpp index e36151038b2d..d381d79fba96 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); -- cgit v1.2.3