mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-26 12:46:00 +00:00
Don't add in the asked for size so that we don't copy too much from the old to new vectors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136338 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
297738fa95
commit
7196184610
@ -215,9 +215,9 @@ void LandingPadInst::growOperands() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void LandingPadInst::reserveClauses(unsigned Size) {
|
void LandingPadInst::reserveClauses(unsigned Size) {
|
||||||
unsigned e = getNumOperands() + Size;
|
unsigned e = getNumOperands();
|
||||||
if (ReservedSpace >= e) return;
|
if (ReservedSpace >= e + Size) return;
|
||||||
ReservedSpace = e;
|
ReservedSpace = e + Size;
|
||||||
|
|
||||||
Use *NewOps = allocHungoffUses(ReservedSpace);
|
Use *NewOps = allocHungoffUses(ReservedSpace);
|
||||||
Use *OldOps = OperandList;
|
Use *OldOps = OperandList;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user