more static if bugfixes
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Sat, 19 Jun 2021 01:01:08 +0000 (20:01 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Sat, 19 Jun 2021 01:01:08 +0000 (20:01 -0500)
bin/onyx
src/onyxclone.c

index 9835d92eb38569282f50fbb7051b19daa8af0476..37c9c8cb41f936b004c311aa62d7741ad7195ca1 100755 (executable)
Binary files a/bin/onyx and b/bin/onyx differ
index 7a6f810aae8ef5fc17885bc886cf4e09e12397a3..6fbda8437a6a9f9486308c33df46ae1b425d9a8c 100644 (file)
@@ -238,6 +238,7 @@ AstNode* ast_clone(bh_allocator a, void* n) {
                                ((AstIfWhile *) nn)->assignment->left = (AstTyped *) ((AstIfWhile *) nn)->local;
 
                        ((AstIfWhile *) nn)->cond = (AstTyped *) ast_clone(a, ((AstIfWhile *) node)->cond);
+               case Ast_Kind_Static_If:
                        ((AstIfWhile *) nn)->true_stmt = (AstBlock *) ast_clone(a, ((AstIfWhile *) node)->true_stmt);
                        ((AstIfWhile *) nn)->false_stmt = (AstBlock *) ast_clone(a, ((AstIfWhile *) node)->false_stmt);
                        break;