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:
Christian Kamm
2009-02-14 21:18:47 +01:00
parent 4dee095dc3
commit 0676cf018d
2 changed files with 19 additions and 10 deletions

View File

@@ -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);
}