forked from OSchip/llvm-project
Fix a memory leak. We leaked the vector holding the entries in switch tables.
llvm-svn: 13023
This commit is contained in:
parent
bc4118f316
commit
ca96cee67b
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue