Change uses of Function::front to Function::getEntryBlock for readability.
[oota-llvm.git] / lib / Transforms / Utils / CloneFunction.cpp
index d80a83157ab6b9d87e017031897a2ee7c7b0bfe5..cff58ab15410c916e72f7e2b5c18b7d5af1a13fe 100644 (file)
@@ -59,7 +59,7 @@ BasicBlock *llvm::CloneBasicBlock(const BasicBlock *BB,
     CodeInfo->ContainsUnwinds        |= isa<UnwindInst>(BB->getTerminator());
     CodeInfo->ContainsDynamicAllocas |= hasDynamicAllocas;
     CodeInfo->ContainsDynamicAllocas |= hasStaticAllocas && 
-                                        BB != &BB->getParent()->front();
+                                        BB != &BB->getParent()->getEntryBlock();
   }
   return NewBB;
 }