aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-06-17 10:48:50 +0100
committergingerBill <bill@gingerbill.org>2018-06-17 10:48:50 +0100
commite5aff6fd6d88c58b9ac4d303a97c5990f6f622b0 (patch)
tree88d4e9b2e6d126e69ad701cbf01a9e0c4405fca9 /src/ir.cpp
parent3eb8aa826823197bf0be223f9bccffdfeb366ebd (diff)
Minimize AstNode size
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index 359fcc144..8eed0dc02 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -6285,7 +6285,8 @@ void ir_build_stmt_list(irProcedure *proc, Array<AstNode *> stmts) {
ir_build_constant_value_decl(proc, vd);
case_end;
case_ast_node(fb, ForeignBlockDecl, stmt);
- ir_build_stmt_list(proc, fb->decls);
+ ast_node(block, BlockStmt, fb->body);
+ ir_build_stmt_list(proc, block->stmts);
case_end;
}
}