Skip to content

Commit deac519

Browse files
committed
Fixed bug in cleanup of nodes in ExplodedNodeImpl where we should directly
call the dstor instead of using delete. llvm-svn: 46084
1 parent a65e1f3 commit deac519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/Analysis/ExplodedGraph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ ExplodedGraphImpl::~ExplodedGraphImpl() {
8080

8181
for (llvm::FoldingSet<ExplodedNodeImpl>::iterator
8282
I=ENodes->begin(), E=ENodes->end(); I!=E; ++I)
83-
delete &*I;
83+
(*I).~ExplodedNodeImpl();
8484

8585
delete ENodes;
8686
}

0 commit comments

Comments
 (0)