Rename Function::getEntryNode -> getEntryBlock
llvm-svn: 8625
diff --git a/llvm/lib/Transforms/Scalar/Mem2Reg.cpp b/llvm/lib/Transforms/Scalar/Mem2Reg.cpp
index b731ab1..16d05d8 100644
--- a/llvm/lib/Transforms/Scalar/Mem2Reg.cpp
+++ b/llvm/lib/Transforms/Scalar/Mem2Reg.cpp
@@ -38,7 +38,7 @@
std::vector<AllocaInst*> Allocas;
const TargetData &TD = getAnalysis<TargetData>();
- BasicBlock &BB = F.getEntryNode(); // Get the entry node for the function
+ BasicBlock &BB = F.getEntryBlock(); // Get the entry node for the function
bool Changed = false;