mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 15:48:38 +00:00
Initialize another Context, in the hopes of unbreaking CBE.
llvm-svn: 76184
This commit is contained in:
parent
e2276d0168
commit
8ce5e03431
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user