diff options
| author | gingerBill <bill@gingerbill.org> | 2018-06-09 19:53:06 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-06-09 19:53:06 +0100 |
| commit | 268491b224ac07edc50d314c071b19970cf157d0 (patch) | |
| tree | aa123c6f95976d7adecb977b9ca4f8d8924ea56b /src/check_decl.cpp | |
| parent | 49ea9ed7226b68cde2eeea3984d61098df9f22e3 (diff) | |
Use global arena for AstNode allocations
Diffstat (limited to 'src/check_decl.cpp')
| -rw-r--r-- | src/check_decl.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp index 28a3dadce..b23ab2b74 100644 --- a/src/check_decl.cpp +++ b/src/check_decl.cpp @@ -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 || |