diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-09-08 18:28:18 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-09-08 18:28:18 +0100 |
| commit | 56dd12c54c20b2e4a7f896999ece1cf184f09e88 (patch) | |
| tree | 64947563e064550cef3ecdc26bd9b36bb05b48a3 /src/codegen/ssa.cpp | |
| parent | c6d02e4778486c350a732105b6413ba1d32a234a (diff) | |
Fix match statements for the new AstNodeArray type
Diffstat (limited to 'src/codegen/ssa.cpp')
| -rw-r--r-- | src/codegen/ssa.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codegen/ssa.cpp b/src/codegen/ssa.cpp index 0340cd322..a3e8c6b6b 100644 --- a/src/codegen/ssa.cpp +++ b/src/codegen/ssa.cpp @@ -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; |