mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-15 02:12:22 -07:00
Fix match statements for the new AstNodeArray type
This commit is contained in:
+2
-2
@@ -3184,9 +3184,9 @@ void ssa_build_stmt(ssaProcedure *proc, AstNode *node) {
|
||||
fall = ssa__make_block(proc, clause, make_string("match.fall.body"));
|
||||
}
|
||||
|
||||
if (gb_array_count(cc->list)) {
|
||||
if (gb_array_count(cc->list) == 0) {
|
||||
// default case
|
||||
default_stmts = cc->stmts;
|
||||
default_stmts = cc->stmts;
|
||||
default_fall = fall;
|
||||
default_block = body;
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user