[clang] [NFC][analyzer] Eliminate NodeBuilder from ExprEngine visit methods and from their utility methods (PR #212186)
DonĂ¡t Nagy via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 28 06:42:31 PDT 2026
================
@@ -3688,12 +3683,15 @@ void ExprEngine::evalLocation(ExplodedNodeSet &Dst,
// "Variable 'p' initialized to a null pointer value"
static SimpleProgramPointTag tag(TagProviderName, "Location");
- Bldr.generateNode(NodeEx, Pred, state, &tag);
+ const ProgramPoint &L = ProgramPoint::getProgramPoint(
+ NodeEx, ProgramPoint::PostStmtKind, Pred->getStackFrame(), &tag);
----------------
NagyDonat wrote:
```suggestion
PostStmt L(NodeEx, Pred->getStackFrame(), &tag);
```
As above, no need for `getProgramPoint`.
https://github.com/llvm/llvm-project/pull/212186
More information about the cfe-commits
mailing list