diff sema/Visitor.d @ 162:0f38f1a0f06f

Fixed symbol for a functions members.
author Anders Johnsen <skabet@gmail.com>
date Tue, 22 Jul 2008 16:22:58 +0200
parents 57b0b4464a0b
children 01c2c49775ef
line wrap: on
line diff
--- a/sema/Visitor.d	Tue Jul 22 13:39:15 2008 +0200
+++ b/sema/Visitor.d	Tue Jul 22 16:22:58 2008 +0200
@@ -263,9 +263,12 @@
     
     StmtT visitForStmt(ForStmt s)
     {
-        visitStmt(s.init);
-        visitExp(s.cond);
-        visitExp(s.incre);
+        if(s.init)
+            visitStmt(s.init);
+        if(s.cond)
+            visitExp(s.cond);
+        if(s.incre)
+            visitExp(s.incre);
         visitStmt(s.forBody);
         static if (is(StmtT == void))
             return;