diff options
Diffstat (limited to 'llvm/lib/Transforms/IPO/LowerSetJmp.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/LowerSetJmp.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/LowerSetJmp.cpp b/llvm/lib/Transforms/IPO/LowerSetJmp.cpp index b545f0bb267..cb3875ec1ea 100644 --- a/llvm/lib/Transforms/IPO/LowerSetJmp.cpp +++ b/llvm/lib/Transforms/IPO/LowerSetJmp.cpp @@ -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())), |