summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/LowerInvoke.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-16 18:04:31 +0000
committerOwen Anderson <resistor@mac.com>2009-07-16 18:04:31 +0000
commit20b34ac794d15256953f5807c4cbe2cbe16ae5e6 (patch)
tree38ac5c7c3e222e1ccb694083c6ddec81ca81b231 /llvm/lib/Transforms/Utils/LowerInvoke.cpp
parentca75db7c02c7c452cde8c8f56c898dff1c1b3e95 (diff)
downloadbcm5719-llvm-20b34ac794d15256953f5807c4cbe2cbe16ae5e6.tar.gz
bcm5719-llvm-20b34ac794d15256953f5807c4cbe2cbe16ae5e6.zip
Move the ConstantInt uniquing table into LLVMContextImpl. This exposed a number of issues in
our current context-passing stuff, which is also fixed here llvm-svn: 76089
Diffstat (limited to 'llvm/lib/Transforms/Utils/LowerInvoke.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LowerInvoke.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/LowerInvoke.cpp b/llvm/lib/Transforms/Utils/LowerInvoke.cpp
index fae3edf0ada..1417f10e645 100644
--- a/llvm/lib/Transforms/Utils/LowerInvoke.cpp
+++ b/llvm/lib/Transforms/Utils/LowerInvoke.cpp
@@ -115,6 +115,8 @@ FunctionPass *llvm::createLowerInvokePass(const TargetLowering *TLI) {
// doInitialization - Make sure that there is a prototype for abort in the
// current module.
bool LowerInvoke::doInitialization(Module &M) {
+ Context = &M.getContext();
+
const Type *VoidPtrTy = Context->getPointerTypeUnqual(Type::Int8Ty);
AbortMessage = 0;
if (ExpensiveEHSupport) {
OpenPOWER on IntegriCloud