diff gen/structs.cpp @ 955:8a70b4381369

Make sure debug info uses the right compilation units - in particular the current cu if a symbol is a template instance. Fixes #211.
author Christian Kamm <kamm incasoftware de>
date Sat, 14 Feb 2009 21:18:47 +0100
parents 9a10fa839dc5
children 3ead5c40b7d6
line wrap: on
line diff
--- a/gen/structs.cpp	Sat Feb 14 15:25:48 2009 +0100
+++ b/gen/structs.cpp	Sat Feb 14 21:18:47 2009 +0100
@@ -642,7 +642,7 @@
     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);
 }