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();


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to