mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-12 06:06:32 +00:00
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:
parent
f49090035f
commit
f57a43da9c
@ -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
Block a user