aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-06-09 19:53:06 +0100
committergingerBill <bill@gingerbill.org>2018-06-09 19:53:06 +0100
commit268491b224ac07edc50d314c071b19970cf157d0 (patch)
treeaa123c6f95976d7adecb977b9ca4f8d8924ea56b /src/ir.cpp
parent49ea9ed7226b68cde2eeea3984d61098df9f22e3 (diff)
Use global arena for AstNode allocations
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index a2bb9808d..507cfd0fc 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -8550,7 +8550,7 @@ void ir_gen_tree(irGen *s) {
}
proc_type->Proc.abi_compat_result_type = proc_results->Tuple.variables[0]->type;
- AstNode *body = gb_alloc_item(a, AstNode);
+ AstNode *body = alloc_ast_node(nullptr, AstNode_Invalid);
Entity *e = alloc_entity_procedure(nullptr, make_token_ident(name), proc_type, 0);
irValue *p = ir_value_procedure(a, m, e, proc_type, nullptr, body, name);
@@ -8628,7 +8628,7 @@ void ir_gen_tree(irGen *s) {
}
proc_type->Proc.abi_compat_result_type = proc_results->Tuple.variables[0]->type;
- AstNode *body = gb_alloc_item(a, AstNode);
+ AstNode *body = alloc_ast_node(nullptr, AstNode_Invalid);
Entity *e = alloc_entity_procedure(nullptr, make_token_ident(name), proc_type, 0);
irValue *p = ir_value_procedure(a, m, e, proc_type, nullptr, body, name);
@@ -8692,7 +8692,7 @@ void ir_gen_tree(irGen *s) {
proc_params, 4,
proc_results, 1, false, ProcCC_Std);
- AstNode *body = gb_alloc_item(a, AstNode);
+ AstNode *body = alloc_ast_node(nullptr, AstNode_Invalid);
Entity *e = alloc_entity_procedure(a, nullptr, make_token_ident(name), proc_type, 0);
irValue *p = ir_value_procedure(a, m, e, proc_type, nullptr, body, name);
@@ -8718,7 +8718,7 @@ void ir_gen_tree(irGen *s) {
nullptr, 0,
nullptr, 0, false,
ProcCC_Contextless);
- AstNode *body = gb_alloc_item(a, AstNode);
+ AstNode *body = alloc_ast_node(nullptr, AstNode_Invalid);
Entity *e = alloc_entity_procedure(nullptr, make_token_ident(name), proc_type, 0);
irValue *p = ir_value_procedure(a, m, e, proc_type, nullptr, body, name);