aboutsummaryrefslogtreecommitdiff
path: root/Analysis/ExplodedGraph.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-01-16 19:27:42 +0000
committerTed Kremenek <kremenek@apple.com>2008-01-16 19:27:42 +0000
commita5a1ef481efbc896ce39ac696f1011678298e6da (patch)
treea4c1ac69b077bca3193172832e3421a18a5eab7f /Analysis/ExplodedGraph.cpp
parent1e0a39012467b4f409142c32148036a9ee05e1d7 (diff)
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
Diffstat (limited to 'Analysis/ExplodedGraph.cpp')
-rw-r--r--Analysis/ExplodedGraph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Analysis/ExplodedGraph.cpp b/Analysis/ExplodedGraph.cpp
index 61548e9b27..35e9d9de9a 100644
--- a/Analysis/ExplodedGraph.cpp
+++ b/Analysis/ExplodedGraph.cpp
@@ -80,7 +80,7 @@ ExplodedGraphImpl::~ExplodedGraphImpl() {
for (llvm::FoldingSet<ExplodedNodeImpl>::iterator
I=ENodes->begin(), E=ENodes->end(); I!=E; ++I)
- delete &*I;
+ (*I).~ExplodedNodeImpl();
delete ENodes;
}