diff gen/typinf.cpp @ 763:9a9f403ab399

D2 changes! Removed druntime from the repository again.. Sorry :/ Updated the druntime port a bit, now requires druntime from trunk. Added info in runtime/README on how to get druntime from trunk. Added patch to add LDC support to druntime. Removed some debug logging from D2 builds. Fixed broken typeinfo for const/invariant in D2.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Wed, 12 Nov 2008 07:22:05 +0100
parents fa306ca8843b
children 8e7d4ddab66d
line wrap: on
line diff
--- a/gen/typinf.cpp	Tue Nov 11 22:57:19 2008 +0100
+++ b/gen/typinf.cpp	Wed Nov 12 07:22:05 2008 +0100
@@ -230,12 +230,16 @@
 
 int TypeBasic::builtinTypeInfo()
 {
-    return 1;
+    return !mod;
 }
 
 int TypeDArray::builtinTypeInfo()
 {
+#if DMDV2
+    return !mod && next->isTypeBasic() != NULL && !next->mod;
+#else
     return next->isTypeBasic() != NULL;
+#endif
 }
 
 /* ========================================================================= */