Fixed oom bug in ilang parser
authorClifford Wolf <clifford@clifford.at>
Sun, 29 Nov 2015 19:30:32 +0000 (20:30 +0100)
committerClifford Wolf <clifford@clifford.at>
Sun, 29 Nov 2015 19:30:32 +0000 (20:30 +0100)
frontends/ilang/ilang_parser.y

index 8622e0b89ac8e9ebb92a5b9b081baae90cac0c48..cc31c86425d42843b83f8119db9a67abc61e7538 100644 (file)
@@ -276,8 +276,8 @@ compare_list:
        /* empty */;
 
 case_body:
-       switch_stmt case_body |
-       assign_stmt case_body |
+       case_body switch_stmt |
+       case_body assign_stmt |
        /* empty */;
 
 assign_stmt: