forked from OSchip/llvm-project
Don't add in the asked for size so that we don't copy too much from the old to new vectors.
llvm-svn: 136338
This commit is contained in:
parent
b726a55729
commit
d8c1c1f23c
|
@ -215,9 +215,9 @@ void LandingPadInst::growOperands() {
|
|||
}
|
||||
|
||||
void LandingPadInst::reserveClauses(unsigned Size) {
|
||||
unsigned e = getNumOperands() + Size;
|
||||
if (ReservedSpace >= e) return;
|
||||
ReservedSpace = e;
|
||||
unsigned e = getNumOperands();
|
||||
if (ReservedSpace >= e + Size) return;
|
||||
ReservedSpace = e + Size;
|
||||
|
||||
Use *NewOps = allocHungoffUses(ReservedSpace);
|
||||
Use *OldOps = OperandList;
|
||||
|
|
Loading…
Reference in New Issue