Switch statements were dropping the ball on semantic analysis.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 02 Mar 2011 21:29:29 -0800
changeset 1003 05f4a65482f9
parent 1002 f47e8025c2a1
child 1004 650ee7802725
Switch statements were dropping the ball on semantic analysis.
mojoshader_compiler.c
--- a/mojoshader_compiler.c	Wed Feb 23 16:46:14 2011 -0500
+++ b/mojoshader_compiler.c	Wed Mar 02 21:29:29 2011 -0800
@@ -2925,6 +2925,7 @@
                 type_check_ast(ctx, cases->statement);
                 cases = cases->next;
             } // while
+            type_check_ast(ctx, ast->switchstmt.next);
             return NULL;
         } // case