From dcb291faa4e15d0e0873e76d844d0535ac348afe Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 22 Mar 2007 16:38:57 +0000 Subject: Change uses of Function::front to Function::getEntryBlock for readability. llvm-svn: 35265 --- llvm/lib/Transforms/Utils/InlineFunction.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp') 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); } } } -- cgit v1.2.3