Fix bugs: Array Literals with constant elements; IR printing of raw procedure types

This commit is contained in:
gingerBill
2019-02-24 10:30:58 +00:00
parent cdfaa643cc
commit a0c81c79ad
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -7360,7 +7360,7 @@ irAddr ir_build_addr(irProcedure *proc, Ast *expr) {
case Type_Array: {
if (cl->elems.count > 0) {
// ir_emit_store(proc, v, ir_add_module_constant(proc->module, type, exact_value_compound(expr)));
ir_emit_store(proc, v, ir_add_module_constant(proc->module, type, exact_value_compound(expr)));
auto temp_data = array_make<irCompoundLitElemTempData>(heap_allocator(), 0, cl->elems.count);
defer (array_free(&temp_data));