diff options
author | Takuya Shimizu <shimizu2486@gmail.com> | 2023-08-30 10:05:06 +0900 |
---|---|---|
committer | Takuya Shimizu <shimizu2486@gmail.com> | 2023-08-30 10:05:06 +0900 |
commit | 01b88dd66d9d52d3f531a7d490e18c549f36f445 (patch) | |
tree | db628307ae7d6a9f4dc626d4a9d065895bc567d4 /llvm/lib/Support/VirtualFileSystem.cpp | |
parent | c948e3e75780a4ee9b8b3eadd749cf8cf93ce34e (diff) | |
download | llvm-01b88dd66d9d52d3f531a7d490e18c549f36f445.zip llvm-01b88dd66d9d52d3f531a7d490e18c549f36f445.tar.gz llvm-01b88dd66d9d52d3f531a7d490e18c549f36f445.tar.bz2 |
[NFC] Remove unused variables declared in conditions
D152495 makes clang warn on unused variables that are declared in conditions like `if (int var = init) {}`
This patch is an NFC fix to suppress the new warning in llvm,clang,lld builds to pass CI in the above patch.
Differential Revision: https://reviews.llvm.org/D158016
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
-rw-r--r-- | llvm/lib/Support/VirtualFileSystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/VirtualFileSystem.cpp b/llvm/lib/Support/VirtualFileSystem.cpp index d381d79..e361510 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 (std::error_code EC = makeCanonical(Path)) + if (makeCanonical(Path)) return {}; return ExternalFS->isLocal(Path, Result); |