mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-27 00:53:23 +01:00
LLVMContext changes up to r77366
This commit is contained in:
@@ -142,7 +142,7 @@ void RTTIBuilder::push_funcptr(FuncDeclaration* fd, Type* castto)
|
||||
void RTTIBuilder::finalize(IrGlobal* tid)
|
||||
{
|
||||
// create the inititalizer
|
||||
LLConstant* tiInit = gIR->context().getConstantStruct(&inits[0], inits.size(), false);
|
||||
LLConstant* tiInit = LLConstantStruct::get(&inits[0], inits.size(), false);
|
||||
|
||||
// refine global type
|
||||
llvm::cast<llvm::OpaqueType>(tid->type.get())->refineAbstractTypeTo(tiInit->getType());
|
||||
@@ -154,5 +154,5 @@ void RTTIBuilder::finalize(IrGlobal* tid)
|
||||
LLConstant* RTTIBuilder::get_constant()
|
||||
{
|
||||
// just return the inititalizer
|
||||
return gIR->context().getConstantStruct(&inits[0], inits.size(), false);
|
||||
return LLConstantStruct::get(&inits[0], inits.size(), false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user