diff options
| author | gingerBill <bill@gingerbill.org> | 2018-06-17 10:48:50 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-06-17 10:48:50 +0100 |
| commit | e5aff6fd6d88c58b9ac4d303a97c5990f6f622b0 (patch) | |
| tree | 88d4e9b2e6d126e69ad701cbf01a9e0c4405fca9 /src/check_stmt.cpp | |
| parent | 3eb8aa826823197bf0be223f9bccffdfeb366ebd (diff) | |
Minimize AstNode size
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index d88a9e810..b5c88ab14 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -1620,8 +1620,9 @@ void check_stmt_internal(CheckerContext *ctx, AstNode *node, u32 flags) { check_decl_attributes(&c, fb->attributes, foreign_block_decl_attribute, nullptr); - for_array(i, fb->decls) { - AstNode *decl = fb->decls[i]; + ast_node(block, BlockStmt, fb->body); + for_array(i, block->stmts) { + AstNode *decl = block->stmts[i]; if (decl->kind == AstNode_ValueDecl && decl->ValueDecl.is_mutable) { check_stmt(&c, decl, flags); } |