mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
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
This commit is contained in:
parent
a62b5eded6
commit
ff8ac551a7
@ -87,6 +87,9 @@ Pass *llvm::createLowerAllocationsPass(bool LowerMallocArgToInteger) {
|
|||||||
// This function is always successful.
|
// This function is always successful.
|
||||||
//
|
//
|
||||||
bool LowerAllocations::doInitialization(Module &M) {
|
bool LowerAllocations::doInitialization(Module &M) {
|
||||||
|
// Ensure context initialization.
|
||||||
|
BasicBlockPass::doInitialization(M);
|
||||||
|
|
||||||
const Type *BPTy = Context->getPointerTypeUnqual(Type::Int8Ty);
|
const Type *BPTy = Context->getPointerTypeUnqual(Type::Int8Ty);
|
||||||
// Prototype malloc as "char* malloc(...)", because we don't know in
|
// Prototype malloc as "char* malloc(...)", because we don't know in
|
||||||
// doInitialization whether size_t is int or long.
|
// doInitialization whether size_t is int or long.
|
||||||
|
Loading…
Reference in New Issue
Block a user