mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-15 04:13:14 +01:00
Don't use llvm::getGlobalContext() anymore
This commit is contained in:
@@ -811,7 +811,7 @@ void DtoDefineFunction(FuncDeclaration* fd)
|
||||
}
|
||||
}
|
||||
else
|
||||
llvm::ReturnInst::Create(llvm::getGlobalContext().getNullValue(func->getReturnType()), bb);
|
||||
llvm::ReturnInst::Create(gIR->context().getNullValue(func->getReturnType()), bb);
|
||||
}
|
||||
|
||||
// std::cout << *func << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user