diff options
| author | FourteenBrush <naessensarthur2@protonmail.com> | 2024-02-02 21:00:00 +0100 |
|---|---|---|
| committer | FourteenBrush <naessensarthur2@protonmail.com> | 2024-02-02 21:00:00 +0100 |
| commit | 16bd19ed4399cfa56ee9d7d5d467b0f25cf91646 (patch) | |
| tree | 70ef07a8cbd639f76e783cc8b20f12906e905203 /src/parser.cpp | |
| parent | 766d6aa94624b15192413d549f91427957b96f19 (diff) | |
Fix Unhandled Ast_OrBranchExpr
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 2671054df..6127be38e 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -230,6 +230,10 @@ gb_internal Ast *clone_ast(Ast *node, AstFile *f) { case Ast_OrReturnExpr: n->OrReturnExpr.expr = clone_ast(n->OrReturnExpr.expr, f); break; + case Ast_OrBranchExpr: + n->OrBranchExpr.label = clone_ast(n->OrBranchExpr.label, f); + n->OrBranchExpr.expr = clone_ast(n->OrBranchExpr.expr, f); + break; case Ast_TypeAssertion: n->TypeAssertion.expr = clone_ast(n->TypeAssertion.expr, f); n->TypeAssertion.type = clone_ast(n->TypeAssertion.type, f); |