From: Ted Kremenek Date: Wed, 16 Jan 2008 19:27:42 +0000 (+0000) Subject: Fixed bug in cleanup of nodes in ExplodedNodeImpl where we should directly X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5a1ef481efbc896ce39ac696f1011678298e6da;p=clang 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 61548e9b27..35e9d9de9a 100644 --- a/Analysis/ExplodedGraph.cpp +++ b/Analysis/ExplodedGraph.cpp @@ -80,7 +80,7 @@ ExplodedGraphImpl::~ExplodedGraphImpl() { for (llvm::FoldingSet::iterator I=ENodes->begin(), E=ENodes->end(); I!=E; ++I) - delete &*I; + (*I).~ExplodedNodeImpl(); delete ENodes; }