mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-02 13:03:13 +01:00
Make sure debug info uses the right compilation units - in particular the
current cu if a symbol is a template instance. Fixes #211.
This commit is contained in:
@@ -642,7 +642,7 @@ void DtoConstInitStruct(StructDeclaration* sd)
|
||||
gIR->structs.pop_back();
|
||||
|
||||
// emit typeinfo
|
||||
if (sd->getCompilationModule() == gIR->dmodule && sd->llvmInternal != LLVMno_typeinfo)
|
||||
if (sd->getModule() == gIR->dmodule && sd->llvmInternal != LLVMno_typeinfo)
|
||||
DtoTypeInfoOf(sd->type, false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user