diff sema/Visitor.d @ 82:06dda301ea61 new_gen

Can declare outside functions and call c-functions
author Anders Johnsen <skabet@gmail.com>
date Fri, 02 May 2008 19:51:58 +0200
parents 110c7e1c4ca2
children 9e90694f5da0
line wrap: on
line diff
--- a/sema/Visitor.d	Fri May 02 18:23:33 2008 +0200
+++ b/sema/Visitor.d	Fri May 02 19:51:58 2008 +0200
@@ -95,7 +95,8 @@
     DeclT visitVarDecl(VarDecl d)
     {
         visitExp(d.varType);
-        visitExp(d.identifier);
+        if(d.identifier)
+            visitExp(d.identifier);
         if (d.init)
             visitExp(d.init);