Use global arena for AstNode allocations

This commit is contained in:
gingerBill
2018-06-09 19:53:06 +01:00
parent 49ea9ed722
commit 268491b224
11 changed files with 129 additions and 120 deletions

View File

@@ -352,10 +352,6 @@ void check_const_decl(CheckerContext *ctx, Entity *e, AstNode *type_expr, AstNod
}
}
if (init != nullptr) {
check_expr_or_type(ctx, &operand, init, e->type);
}
check_init_constant(ctx, e, &operand);
if (operand.mode == Addressing_Invalid ||