diff options
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Utils/InlineFunction.cpp | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp index d57a8f58aba..a1a638b0c2c 100644 --- a/llvm/lib/Transforms/Utils/InlineFunction.cpp +++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp @@ -265,9 +265,10 @@ bool llvm::InlineFunction(CallSite CS, CallGraph *CG, const TargetData *TD) {            // Transfer all of the allocas over in a block.  Using splice means            // that the instructions aren't removed from the symbol table, then            // reinserted. -          Caller->front().getInstList().splice(InsertPoint, -                                               FirstNewBlock->getInstList(), -                                               AI, I); +          Caller->getEntryBlock().getInstList().splice( +              InsertPoint, +              FirstNewBlock->getInstList(), +              AI, I);          }        }    }  | 

