From: Brendan Hansen Date: Sat, 19 Jun 2021 01:01:08 +0000 (-0500) Subject: more static if bugfixes X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=3415eff581f285a82defd015cd65f4eb1d2dae3f;p=onyx.git more static if bugfixes --- diff --git a/bin/onyx b/bin/onyx index 9835d92e..37c9c8cb 100755 Binary files a/bin/onyx and b/bin/onyx differ diff --git a/src/onyxclone.c b/src/onyxclone.c index 7a6f810a..6fbda843 100644 --- a/src/onyxclone.c +++ b/src/onyxclone.c @@ -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;