[clang] [NFC][analyzer] Remove StmtNodeBuilder (PR #181431)
Balázs Benics via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 17 06:02:35 PST 2026
================
@@ -267,8 +260,9 @@ class NodeBuilder {
NodeBuilder(const ExplodedNodeSet &SrcSet, ExplodedNodeSet &DstSet,
const NodeBuilderContext &Ctx)
: C(Ctx), Frontier(DstSet) {
- Frontier.insert(SrcSet);
- assert(hasNoSinksInFrontier());
+ for (ExplodedNode *Node : SrcSet)
+ if (!Node->isSink())
+ Frontier.insert(Node);
}
----------------
steakhal wrote:
Is it really the same?
What if the `DstSet` already has elements?
https://github.com/llvm/llvm-project/pull/181431
More information about the cfe-commits
mailing list