[clang] 43bd7ae - StreamChecker.cpp: Use isa<> (for #93408) [-Wunused-but-set-variable]
NAKAMURA Takumi via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 13 20:19:13 PDT 2024
Author: NAKAMURA Takumi
Date: 2024-06-14T12:18:41+09:00
New Revision: 43bd7ae65af40ff3378d5a0395a058ba834ad8dd
URL: https://github.com/llvm/llvm-project/commit/43bd7ae65af40ff3378d5a0395a058ba834ad8dd
DIFF: https://github.com/llvm/llvm-project/commit/43bd7ae65af40ff3378d5a0395a058ba834ad8dd.diff
LOG: StreamChecker.cpp: Use isa<> (for #93408) [-Wunused-but-set-variable]
Added:
Modified:
clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp
Removed:
################################################################################
diff --git a/clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp
index 74ee607849a5b..613c221de7b4c 100644
--- a/clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp
@@ -969,9 +969,9 @@ static std::optional<NonLoc> getStartIndex(SValBuilder &SVB,
if (const auto *ER = dyn_cast<ElementRegion>(R))
return ER->getIndex();
- if (const auto *TR = dyn_cast<TypedValueRegion>(R))
+ if (isa<TypedValueRegion>(R))
return Zero();
- if (const auto *SR = dyn_cast<SymbolicRegion>(R))
+ if (isa<SymbolicRegion>(R))
return Zero();
return std::nullopt;
}
More information about the cfe-commits
mailing list