aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-11-23 03:50:44 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-11-23 03:50:44 +0000
commitce2c51b6701c06f701efa2871794b7710cb64b41 (patch)
tree298f6ed7fc58f4a04c353ae0efcb8b3b0bd2a0d7 /lib/CodeGen
parent2e0316fcf051154864047a0ebf2497efe7ec8346 (diff)
downloadexternal_llvm-ce2c51b6701c06f701efa2871794b7710cb64b41.zip
external_llvm-ce2c51b6701c06f701efa2871794b7710cb64b41.tar.gz
external_llvm-ce2c51b6701c06f701efa2871794b7710cb64b41.tar.bz2
Pull LLVMContext out of PromoteMemToReg.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89645 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/DwarfEHPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/DwarfEHPrepare.cpp b/lib/CodeGen/DwarfEHPrepare.cpp
index 7fc62a9..9b516ed 100644
--- a/lib/CodeGen/DwarfEHPrepare.cpp
+++ b/lib/CodeGen/DwarfEHPrepare.cpp
@@ -332,7 +332,7 @@ bool DwarfEHPrepare::PromoteStackTemporaries() {
if (ExceptionValueVar && DT && DF && isAllocaPromotable(ExceptionValueVar)) {
// Turn the exception temporary into registers and phi nodes if possible.
std::vector<AllocaInst*> Allocas(1, ExceptionValueVar);
- PromoteMemToReg(Allocas, *DT, *DF, ExceptionValueVar->getContext());
+ PromoteMemToReg(Allocas, *DT, *DF);
return true;
}
return false;