From 55889852127245b830bc3231f172eed53dcb355e Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Wed, 27 Jul 2022 13:56:38 +0800 Subject: [PATCH] [NFC] Convert a dyn_cast<> to an isa<> --- clang/lib/StaticAnalyzer/Core/ExprEngine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp index 19149d0..2088555 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(Ex->getSubExpr())) + if (isa(Ex->getSubExpr())) break; const LocationContext *LCtx = Node->getLocationContext(); -- 2.7.4