Change uses of Function::front to Function::getEntryBlock for readability.
[oota-llvm.git] / lib / Transforms / Scalar / LICM.cpp
index 7a578a8fb42315f826b02e996377488558e698fa..482ac77353793d23e24a87d5e843ab395e08c38b 100644 (file)
@@ -471,7 +471,7 @@ void LICM::sink(Instruction &I) {
 
     if (I.getType() != Type::VoidTy)
       AI = new AllocaInst(I.getType(), 0, I.getName(),
-                          I.getParent()->getParent()->front().begin());
+                          I.getParent()->getParent()->getEntryBlock().begin());
 
     // Secondly, insert load instructions for each use of the instruction
     // outside of the loop.