Plug a memory leak in the asmparser. It turns out that we were leaking

the strings for basic block labels in some cases.  This amounted to about
120K of memory for namd, a medium sized program.

llvm-svn: 17262
This commit is contained in:
Chris Lattner 2004-10-26 18:26:14 +00:00
parent 75e5700227
commit 6ee2c57128
1 changed files with 1 additions and 1 deletions

View File

@ -405,7 +405,7 @@ static BasicBlock *getBBVal(const ValID &ID, bool isDefinition = false) {
CurFun.CurrentFunction->getBasicBlockList().remove(BB);
CurFun.CurrentFunction->getBasicBlockList().push_back(BB);
}
ID.destroy();
return BB;
}