diff dmd/template.c @ 1478:4dca8ed9d8b7

Fix #318 by making a list of all seen template instances in a module for singleobj compilation and then making sure they get emitted in their entirety.
author Christian Kamm <kamm incasoftware de>
date Sat, 06 Jun 2009 09:47:32 +0200
parents 8026319762be
children def7a1d494fd
line wrap: on
line diff
--- a/dmd/template.c	Fri Jun 05 02:54:34 2009 +0200
+++ b/dmd/template.c	Sat Jun 06 09:47:32 2009 +0200
@@ -3106,7 +3106,7 @@
 
 #if IN_LLVM
     // LDC
-    this->tinst = NULL;
+    this->emittedInModule = NULL;
     this->tmodule = NULL;
 #endif