From d56807095a2e9a376bcb583a98aa151ecd77120d Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 2 Feb 2020 18:33:13 +0000 Subject: Implement constant value generation from ExactValue --- src/ir_print.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/ir_print.cpp') diff --git a/src/ir_print.cpp b/src/ir_print.cpp index a3f28c59f..ac4d2469a 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -1014,8 +1014,7 @@ void ir_print_exact_value(irFileBuffer *f, irModule *m, ExactValue value, Type * } else if (is_type_enumerated_array(type)) { ast_node(cl, CompoundLit, value.value_compound); - Type *index_type = type->EnumeratedArray.elem; - Type *elem_type = type->Array.elem; + Type *elem_type = type->EnumeratedArray.elem; isize elem_count = cl->elems.count; if (elem_count == 0) { ir_write_str_lit(f, "zeroinitializer"); -- cgit v1.2.3