Fix a memory leak. We leaked the vector holding the entries in switch tables.

llvm-svn: 13023
This commit is contained in:
Chris Lattner 2004-04-17 23:49:15 +00:00
parent bc4118f316
commit ca96cee67b
1 changed files with 1 additions and 0 deletions

View File

@ -1657,6 +1657,7 @@ BBTerminatorInst : RET ResolvedVal { // Return with a result...
E = $8->end();
for (; I != E; ++I)
S->addCase(I->first, I->second);
delete $8;
}
| SWITCH IntType ValueRef ',' LABEL ValueRef '[' ']' {
SwitchInst *S = new SwitchInst(getVal($2, $3),