mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +00:00
Remove PHINode::reserveOperandSpace(). Instead, add a parameter to
PHINode::Create() giving the (known or expected) number of operands. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128537 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -624,9 +624,8 @@ bool llvm::InlineFunction(CallSite CS, InlineFunctionInfo &IFI) {
|
||||
// The PHI node should go at the front of the new basic block to merge all
|
||||
// possible incoming values.
|
||||
if (!TheCall->use_empty()) {
|
||||
PHI = PHINode::Create(RTy, TheCall->getName(),
|
||||
PHI = PHINode::Create(RTy, Returns.size(), TheCall->getName(),
|
||||
AfterCallBB->begin());
|
||||
PHI->reserveOperandSpace(Returns.size());
|
||||
// Anything that used the result of the function call should now use the
|
||||
// PHI node as their operand.
|
||||
TheCall->replaceAllUsesWith(PHI);
|
||||
|
Reference in New Issue
Block a user