summaryrefslogtreecommitdiffstats
path: root/lib/Transforms
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-17 16:20:23 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-17 16:20:23 +0000
commitff8ac551a7f960299200b930d59b0f64d4838b9f (patch)
tree2550e01efd4509ecab5513bdfc534de176f6b5b7 /lib/Transforms
parenta62b5eded61dfaf5cae63fb6bfd5b514865fb134 (diff)
downloadexternal_llvm-ff8ac551a7f960299200b930d59b0f64d4838b9f.zip
external_llvm-ff8ac551a7f960299200b930d59b0f64d4838b9f.tar.gz
external_llvm-ff8ac551a7f960299200b930d59b0f64d4838b9f.tar.bz2
Initialize another Context, in the hopes of unbreaking CBE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76184 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Utils/LowerAllocations.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Transforms/Utils/LowerAllocations.cpp b/lib/Transforms/Utils/LowerAllocations.cpp
index cd45fea..d7ca313 100644
--- a/lib/Transforms/Utils/LowerAllocations.cpp
+++ b/lib/Transforms/Utils/LowerAllocations.cpp
@@ -87,6 +87,9 @@ Pass *llvm::createLowerAllocationsPass(bool LowerMallocArgToInteger) {
// This function is always successful.
//
bool LowerAllocations::doInitialization(Module &M) {
+ // Ensure context initialization.
+ BasicBlockPass::doInitialization(M);
+
const Type *BPTy = Context->getPointerTypeUnqual(Type::Int8Ty);
// Prototype malloc as "char* malloc(...)", because we don't know in
// doInitialization whether size_t is int or long.