[clang] 5588985 - [NFC] Convert a dyn_cast<> to an isa<>
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 26 23:06:07 PDT 2022
Author: Chuanqi Xu
Date: 2022-07-27T13:56:38+08:00
New Revision: 55889852127245b830bc3231f172eed53dcb355e
URL: https://github.com/llvm/llvm-project/commit/55889852127245b830bc3231f172eed53dcb355e
DIFF: https://github.com/llvm/llvm-project/commit/55889852127245b830bc3231f172eed53dcb355e.diff
LOG: [NFC] Convert a dyn_cast<> to an isa<>
Added:
Modified:
clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
Removed:
################################################################################
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
index 19149d0798229..20885551c8341 100644
--- a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
+++ b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
@@ -2857,7 +2857,7 @@ void ExprEngine::VisitArrayInitLoopExpr(const ArrayInitLoopExpr *Ex,
for (auto *Node : CheckerPreStmt) {
// The constructor visitior has already taken care of everything.
- if (auto *CE = dyn_cast<CXXConstructExpr>(Ex->getSubExpr()))
+ if (isa<CXXConstructExpr>(Ex->getSubExpr()))
break;
const LocationContext *LCtx = Node->getLocationContext();
More information about the cfe-commits
mailing list