[NFC] Convert a dyn_cast<> to an isa<>
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Wed, 27 Jul 2022 05:56:38 +0000 (13:56 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Wed, 27 Jul 2022 05:56:38 +0000 (13:56 +0800)
clang/lib/StaticAnalyzer/Core/ExprEngine.cpp

index 19149d0..2088555 100644 (file)
@@ -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();