mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
(Almost) always call reserveOperandSpace() on newly created PHINodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128535 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -432,6 +432,7 @@ void LowerSetJmp::TransformSetJmpCall(CallInst* Inst)
|
||||
// splitBasicBlock call.
|
||||
PHINode* PHI = PHINode::Create(Type::getInt32Ty(Inst->getContext()),
|
||||
"SetJmpReturn", Inst);
|
||||
PHI->reserveOperandSpace(2);
|
||||
|
||||
// Coming from a call to setjmp, the return is 0.
|
||||
PHI->addIncoming(Constant::getNullValue(Type::getInt32Ty(Inst->getContext())),
|
||||
|
Reference in New Issue
Block a user