[clang] [Clang][analyzer] replace Stmt* with ConstCFGElementRef in SymbolConjured (PR #128251)

via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 26 07:48:30 PST 2025


================
@@ -282,8 +284,9 @@ void ContainerModeling::handleEnd(CheckerContext &C, const Expr *CE,
   auto State = C.getState();
   auto EndSym = getContainerEnd(State, ContReg);
   if (!EndSym) {
-    State = createContainerEnd(State, ContReg, CE, C.getASTContext().LongTy,
-                               C.getLocationContext(), C.blockCount());
+    State = createContainerEnd(State, ContReg, C.getCFGElementRef(),
----------------
isuckatcs wrote:

Here we used to pass `CE`, not `C`. Also, this change makes `CE` an unused parameter.

Please try to indentify and remove them all.

https://github.com/llvm/llvm-project/pull/128251


More information about the cfe-commits mailing list