commit | 1df6ea033855b9c8ff66bdfc5f479fe8d2afb272 | [log] [tgz] |
---|---|---|
author | Nick Lewycky <nicholas@mxc.ca> | Mon Nov 23 03:50:44 2009 +0000 |
committer | Nick Lewycky <nicholas@mxc.ca> | Mon Nov 23 03:50:44 2009 +0000 |
tree | 298f6ed7fc58f4a04c353ae0efcb8b3b0bd2a0d7 | |
parent | c11ad4295ebbb1add9f5ab4c406a2c73851341a4 [diff] [blame] |
Pull LLVMContext out of PromoteMemToReg. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89645 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Utils/Mem2Reg.cpp b/lib/Transforms/Utils/Mem2Reg.cpp index 9416604..99203b6 100644 --- a/lib/Transforms/Utils/Mem2Reg.cpp +++ b/lib/Transforms/Utils/Mem2Reg.cpp
@@ -73,7 +73,7 @@ if (Allocas.empty()) break; - PromoteMemToReg(Allocas, DT, DF, F.getContext()); + PromoteMemToReg(Allocas, DT, DF); NumPromoted += Allocas.size(); Changed = true; }