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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13023 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-04-17 23:49:15 +00:00
parent f49090035f
commit f57a43da9c

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),