1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Initialize another Context, in the hopes of unbreaking CBE.

llvm-svn: 76184
This commit is contained in:
Daniel Dunbar 2009-07-17 16:20:23 +00:00
parent e2276d0168
commit 8ce5e03431

View File

@ -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.