summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/DwarfEHPrepare.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-14 23:09:55 +0000
committerOwen Anderson <resistor@mac.com>2009-07-14 23:09:55 +0000
commitb6b2530000366d6982736dd0d0cc3585b01cf37b (patch)
treefbc341c4197153ef4908d7b6b75b5b2b57a1b46f /llvm/lib/CodeGen/DwarfEHPrepare.cpp
parenteea582f04f1a8fb0d1b81e45e83e9c116869a502 (diff)
downloadbcm5719-llvm-b6b2530000366d6982736dd0d0cc3585b01cf37b.tar.gz
bcm5719-llvm-b6b2530000366d6982736dd0d0cc3585b01cf37b.zip
Move EVER MORE stuff over to LLVMContext.
llvm-svn: 75703
Diffstat (limited to 'llvm/lib/CodeGen/DwarfEHPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/DwarfEHPrepare.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/DwarfEHPrepare.cpp b/llvm/lib/CodeGen/DwarfEHPrepare.cpp
index 4ef43fde50d..5fa8dcea346 100644
--- a/llvm/lib/CodeGen/DwarfEHPrepare.cpp
+++ b/llvm/lib/CodeGen/DwarfEHPrepare.cpp
@@ -354,7 +354,8 @@ Instruction *DwarfEHPrepare::CreateValueLoad(BasicBlock *BB) {
// Create the temporary if we didn't already.
if (!ExceptionValueVar) {
- ExceptionValueVar = new AllocaInst(PointerType::getUnqual(Type::Int8Ty),
+ ExceptionValueVar = new AllocaInst(*Context,
+ PointerType::getUnqual(Type::Int8Ty),
"eh.value", F->begin()->begin());
++NumStackTempsIntroduced;
}
OpenPOWER on IntegriCloud