diff dmd/declaration.c @ 1464:93644700a0b3

Some minor changes to handling of variables referenced from nested functions in D2 . Added generation of new 'void*[4] reserved;' !ModuleInfo member .
author Tomas Lindquist Olsen <tomas.l.olsen gmail com>
date Wed, 03 Jun 2009 03:04:47 +0200
parents e2cf1f67ca33
children d9c5f5a43403
line wrap: on
line diff
--- a/dmd/declaration.c	Wed Jun 03 02:28:48 2009 +0200
+++ b/dmd/declaration.c	Wed Jun 03 03:04:47 2009 +0200
@@ -1163,7 +1163,11 @@
 		fdthis->getLevel(loc, fdv);
 	    nestedref = 1;
 	    fdv->nestedFrameRef = 1;
+#if IN_LLVM
+#if DMDV1
         fdv->nestedVars.insert(this);
+#endif
+#endif
 	    //printf("var %s in function %s is nested ref\n", toChars(), fdv->toChars());
 	}
     }