diff gen/toobj.c @ 72:d7e764e62462 trunk

[svn r76] Fixed: TypeInfo for structs. Fixed: PostExp was unable to allocate storage for parameters. Fixed: Many types of functions and delegates were broken. Misc cleanups.
author lindquist
date Mon, 29 Oct 2007 03:28:12 +0100
parents 2b5a2eaa88be
children b706170e24a9
line wrap: on
line diff
--- a/gen/toobj.c	Sun Oct 28 19:48:57 2007 +0100
+++ b/gen/toobj.c	Mon Oct 29 03:28:12 2007 +0100
@@ -296,7 +296,8 @@
     gIR->structs.pop_back();
 
     // generate typeinfo
-    //type->getTypeInfo(NULL);
+    if (getModule() == gIR->dmodule)
+        type->getTypeInfo(NULL);
 }
 
 /* ================================================================== */
@@ -624,8 +625,7 @@
     LOG_SCOPE;
 
     // generate typeinfo
-    if (!type->builtinTypeInfo())
-        type->getTypeInfo(NULL);
+    type->getTypeInfo(NULL);
 }
 
 /* ================================================================== */