Skip to content

Commit 43bd7ae

Browse files
committed
StreamChecker.cpp: Use isa<> (for #93408) [-Wunused-but-set-variable]
1 parent a7a1195 commit 43bd7ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -969,9 +969,9 @@ static std::optional<NonLoc> getStartIndex(SValBuilder &SVB,
969969

970970
if (const auto *ER = dyn_cast<ElementRegion>(R))
971971
return ER->getIndex();
972-
if (const auto *TR = dyn_cast<TypedValueRegion>(R))
972+
if (isa<TypedValueRegion>(R))
973973
return Zero();
974-
if (const auto *SR = dyn_cast<SymbolicRegion>(R))
974+
if (isa<SymbolicRegion>(R))
975975
return Zero();
976976
return std::nullopt;
977977
}

0 commit comments

Comments
 (0)