Rename Function::getEntryNode -> getEntryBlock
[oota-llvm.git] / lib / Transforms / Scalar / ADCE.cpp
index 897e2093fcd3b714d8e3ed7b87b18455a8f24254..8d71605406095aecbb8223afafd87c19c6bc0c20 100644 (file)
@@ -195,7 +195,7 @@ bool ADCE::doADCE() {
   // transformations safely.
   //
   PostDominatorTree &DT = getAnalysis<PostDominatorTree>();
-  if (DT[&Func->getEntryNode()] == 0) {
+  if (DT[&Func->getEntryBlock()] == 0) {
     WorkList.clear();
     return MadeChanges;
   }