diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-08-20 18:28:21 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-08-20 18:28:21 +0100 |
| commit | 6c73f9d3fdc0249485ffc1e3314f1ed2750b60d0 (patch) | |
| tree | d9b27647cceb4a1bee53b37a48091f11b29c6f17 /src/check_stmt.cpp | |
| parent | 1161aa829d0823cfa3e2f4c93160b7b94b4b0a5c (diff) | |
Global variable dependency initialization ordering
Fuck graph theory
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 8c7586a12..d6c8f654d 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -692,7 +692,7 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) { // an extra allocation Array<Operand> operands = {}; array_init(&operands, c->tmp_allocator, 2 * lhs_count); - check_unpack_arguments(c, lhs_count, &operands, as->rhs, true); + check_unpack_arguments(c, nullptr, lhs_count, &operands, as->rhs, true); isize rhs_count = operands.count; for_array(i, operands) { @@ -849,7 +849,7 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) { } } else { array_init(&operands, heap_allocator(), 2*rs->results.count); - check_unpack_arguments(c, -1, &operands, rs->results, false); + check_unpack_arguments(c, nullptr, -1, &operands, rs->results, false); } |