diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar/Mem2Reg.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/Mem2Reg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/Mem2Reg.cpp b/llvm/lib/Transforms/Scalar/Mem2Reg.cpp index b731ab1a4f7..16d05d8213d 100644 --- a/llvm/lib/Transforms/Scalar/Mem2Reg.cpp +++ b/llvm/lib/Transforms/Scalar/Mem2Reg.cpp @@ -38,7 +38,7 @@ bool PromotePass::runOnFunction(Function &F) { 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; |