diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-17 16:20:23 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-17 16:20:23 +0000 |
commit | 482bd9dcb89c6f38f38c09fc24a46384c63186c2 (patch) | |
tree | b4437b530803504ea19beff59a9819b8acc63c46 | |
parent | ce51c29bcae6125af8f0ca44ee5cdcda6c473a85 (diff) | |
download | bcm5719-llvm-482bd9dcb89c6f38f38c09fc24a46384c63186c2.tar.gz bcm5719-llvm-482bd9dcb89c6f38f38c09fc24a46384c63186c2.zip |
Initialize another Context, in the hopes of unbreaking CBE.
llvm-svn: 76184
-rw-r--r-- | llvm/lib/Transforms/Utils/LowerAllocations.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/LowerAllocations.cpp b/llvm/lib/Transforms/Utils/LowerAllocations.cpp index cd45fea7b98..d7ca3134cf2 100644 --- a/llvm/lib/Transforms/Utils/LowerAllocations.cpp +++ b/llvm/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. |