Fixed bug in cleanup of nodes in ExplodedNodeImpl where we should directly
call the dstor instead of using delete.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46084 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Analysis/ExplodedGraph.cpp b/Analysis/ExplodedGraph.cpp
index 61548e9..35e9d9d 100644
--- a/Analysis/ExplodedGraph.cpp
+++ b/Analysis/ExplodedGraph.cpp
@@ -80,7 +80,7 @@
for (llvm::FoldingSet<ExplodedNodeImpl>::iterator
I=ENodes->begin(), E=ENodes->end(); I!=E; ++I)
- delete &*I;
+ (*I).~ExplodedNodeImpl();
delete ENodes;
}