diff sema/Visitor.d @ 46:90fb4fdfefdd new_gen

While is back
author Anders Halager <halager@gmail.com>
date Wed, 23 Apr 2008 17:01:24 +0200
parents 9bc660cbdbec
children 79cb0afafabe
line wrap: on
line diff
--- a/sema/Visitor.d	Wed Apr 23 16:43:42 2008 +0200
+++ b/sema/Visitor.d	Wed Apr 23 17:01:24 2008 +0200
@@ -170,8 +170,7 @@
     StmtT visitWhileStmt(WhileStmt s)
     {
         visitExp(s.cond);
-        foreach (stmt; s.stmts)
-            visitStmt(stmt);
+        visitStmt(s.whileBody);
         static if (is(StmtT == void))
             return;
         else