Since the object is new'ed in the enterCFG function, now deleting in the exitCFG function instead of the destructor to ensure proper pairing. This allows reuse of the builder without creating a memory leak.
llvm-svn: 206471
This commit is contained in:
@@ -597,6 +597,7 @@ void SExprBuilder::exitCFG(const CFGBlock *Last) {
|
||||
CurrentBlockID = 0;
|
||||
CurrentVarID = 0;
|
||||
CurrentArgIndex = 0;
|
||||
delete CallCtx;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user