Change uses of Function::front to Function::getEntryBlock for readability.
[oota-llvm.git] / lib / Transforms / Utils / InlineFunction.cpp
index d57a8f58aba6b07471172c2684d7c7ea5bc11f7a..a1a638b0c2c3ff89d652ca0465b3bf5a6bdc023e 100644 (file)
@@ -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);
         }
       }
   }