mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Switch some getModule to getCompilationModule to make sure templates are
emitted in the right module.
This commit is contained in:
@@ -533,11 +533,6 @@ void DtoResolveStruct(StructDeclaration* sd)
|
||||
// set irstruct info
|
||||
irstruct->packed = ispacked;
|
||||
|
||||
// defined in this module?
|
||||
bool thisModule = false;
|
||||
if (sd->getModule() == gIR->dmodule)
|
||||
thisModule = true;
|
||||
|
||||
// methods, fields
|
||||
Array* arr = sd->members;
|
||||
for (int k=0; k < arr->dim; k++) {
|
||||
@@ -647,7 +642,7 @@ void DtoConstInitStruct(StructDeclaration* sd)
|
||||
gIR->structs.pop_back();
|
||||
|
||||
// emit typeinfo
|
||||
if (sd->getModule() == gIR->dmodule && sd->llvmInternal != LLVMno_typeinfo)
|
||||
if (sd->getCompilationModule() == gIR->dmodule && sd->llvmInternal != LLVMno_typeinfo)
|
||||
DtoTypeInfoOf(sd->type, false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user