commit | 15a1287c1f3ba993028f0f37c3ef0adc08287719 | [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 | aa942786785d9c691b95cb42e9fabda7b12902f8 | |
parent | 621fe5614e032fe231ff18304876af0d33c4fe6e [diff] [blame] |
Pull LLVMContext out of PromoteMemToReg. llvm-svn: 89645
diff --git a/llvm/lib/Transforms/Utils/Mem2Reg.cpp b/llvm/lib/Transforms/Utils/Mem2Reg.cpp index 9416604..99203b6 100644 --- a/llvm/lib/Transforms/Utils/Mem2Reg.cpp +++ b/llvm/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; }