This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG3b652fc6d644: [analyzer] Fix static code analysis concerns (authored by Manna, committed by isuckatcs). Herald added a project: clang. Herald added a subscriber: cfe-commits.
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D135290/new/ https://reviews.llvm.org/D135290 Files: clang/lib/StaticAnalyzer/Core/ExprEngine.cpp Index: clang/lib/StaticAnalyzer/Core/ExprEngine.cpp =================================================================== --- clang/lib/StaticAnalyzer/Core/ExprEngine.cpp +++ clang/lib/StaticAnalyzer/Core/ExprEngine.cpp @@ -1378,10 +1378,10 @@ "Prepare for object destruction"); PreImplicitCall PP(DtorDecl, varDecl->getLocation(), LCtx, &PT); Pred = Bldr.generateNode(PP, state, Pred); - Bldr.takeNodes(Pred); if (!Pred) return; + Bldr.takeNodes(Pred); VisitCXXDestructor(varType, Region, Dtor.getTriggerStmt(), /*IsBase=*/false, Pred, Dst, CallOpts); @@ -1452,10 +1452,10 @@ "Prepare for object destruction"); PreImplicitCall PP(getDtorDecl(DTy), DE->getBeginLoc(), LCtx, &PT); Pred = Bldr.generateNode(PP, State, Pred); - Bldr.takeNodes(Pred); if (!Pred) return; + Bldr.takeNodes(Pred); VisitCXXDestructor(DTy, ArgR, DE, /*IsBase=*/false, Pred, Dst, CallOpts); } @@ -1528,10 +1528,10 @@ "Prepare for object destruction"); PreImplicitCall PP(DtorDecl, Member->getLocation(), LCtx, &PT); Pred = Bldr.generateNode(PP, State, Pred); - Bldr.takeNodes(Pred); if (!Pred) return; + Bldr.takeNodes(Pred); VisitCXXDestructor(T, FieldVal.getAsRegion(), CurDtor->getBody(), /*IsBase=*/false, Pred, Dst, CallOpts);
Index: clang/lib/StaticAnalyzer/Core/ExprEngine.cpp =================================================================== --- clang/lib/StaticAnalyzer/Core/ExprEngine.cpp +++ clang/lib/StaticAnalyzer/Core/ExprEngine.cpp @@ -1378,10 +1378,10 @@ "Prepare for object destruction"); PreImplicitCall PP(DtorDecl, varDecl->getLocation(), LCtx, &PT); Pred = Bldr.generateNode(PP, state, Pred); - Bldr.takeNodes(Pred); if (!Pred) return; + Bldr.takeNodes(Pred); VisitCXXDestructor(varType, Region, Dtor.getTriggerStmt(), /*IsBase=*/false, Pred, Dst, CallOpts); @@ -1452,10 +1452,10 @@ "Prepare for object destruction"); PreImplicitCall PP(getDtorDecl(DTy), DE->getBeginLoc(), LCtx, &PT); Pred = Bldr.generateNode(PP, State, Pred); - Bldr.takeNodes(Pred); if (!Pred) return; + Bldr.takeNodes(Pred); VisitCXXDestructor(DTy, ArgR, DE, /*IsBase=*/false, Pred, Dst, CallOpts); } @@ -1528,10 +1528,10 @@ "Prepare for object destruction"); PreImplicitCall PP(DtorDecl, Member->getLocation(), LCtx, &PT); Pred = Bldr.generateNode(PP, State, Pred); - Bldr.takeNodes(Pred); if (!Pred) return; + Bldr.takeNodes(Pred); VisitCXXDestructor(T, FieldVal.getAsRegion(), CurDtor->getBody(), /*IsBase=*/false, Pred, Dst, CallOpts);
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits