| ... | ... | @@ -725,8 +725,8 @@ static LLVMValueRef get_panic_msg_ptr_val(CodeGen *g, PanicMsgId msg_id) { |
| 725 | 725 | ConstExprValue *array_val = create_const_str_lit(g, buf_msg); |
| 726 | 726 | init_const_slice(g, val, array_val, 0, buf_len(buf_msg), true); |
| 727 | 727 | |
| 728 | | render_const_val_global(g, val, ""); |
| 729 | 728 | render_const_val(g, val); |
| 729 | render_const_val_global(g, val, ""); |
| 730 | 730 | |
| 731 | 731 | assert(val->global_refs->llvm_global); |
| 732 | 732 | return val->global_refs->llvm_global; |
| ... | ... | @@ -3635,7 +3635,8 @@ static LLVMValueRef gen_const_val(CodeGen *g, ConstExprValue *const_val) { |
| 3635 | 3635 | fields[type_struct_field->gen_index] = gen_const_val(g, &const_val->data.x_struct.fields[i]); |
| 3636 | 3636 | } |
| 3637 | 3637 | } |
| 3638 | | return LLVMConstNamedStruct(type_entry->type_ref, fields, type_entry->data.structure.gen_field_count); |
| 3638 | return LLVMConstStruct(fields, type_entry->data.structure.gen_field_count, |
| 3639 | type_entry->data.structure.layout == ContainerLayoutPacked); |
| 3639 | 3640 | } |
| 3640 | 3641 | case TypeTableEntryIdUnion: |
| 3641 | 3642 | { |