[llvm-commits] [llvm] r76184 - /llvm/trunk/lib/Transforms/Utils/LowerAllocations.cpp
Daniel Dunbar
daniel at zuster.org
Fri Jul 17 09:20:38 PDT 2009
Author: ddunbar
Date: Fri Jul 17 11:20:23 2009
New Revision: 76184
URL: http://llvm.org/viewvc/llvm-project?rev=76184&view=rev
Log:
Initialize another Context, in the hopes of unbreaking CBE.
Modified:
llvm/trunk/lib/Transforms/Utils/LowerAllocations.cpp
Modified: llvm/trunk/lib/Transforms/Utils/LowerAllocations.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/LowerAllocations.cpp?rev=76184&r1=76183&r2=76184&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/LowerAllocations.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/LowerAllocations.cpp Fri Jul 17 11:20:23 2009
@@ -87,6 +87,9 @@
// 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.
More information about the llvm-commits
mailing list