From aed96e35126eb6bb6c280f6517f59b5f17d7e61e Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 8 May 2016 00:15:05 -0700 Subject: fix null literal outside function --- src/analyze.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/analyze.cpp') diff --git a/src/analyze.cpp b/src/analyze.cpp index 4bc3022765..893da7fd5e 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -3742,7 +3742,6 @@ static TypeTableEntry *analyze_null_literal_expr(CodeGen *g, ImportTableEntry *i node->data.null_literal.resolved_struct_val_expr.type_entry = expected_type; node->data.null_literal.resolved_struct_val_expr.source_node = node; - block_context->fn_entry->struct_val_expr_alloca_list.append(&node->data.null_literal.resolved_struct_val_expr); return resolve_expr_const_val_as_null(g, node, expected_type); } -- cgit v1.2.3