Fix Compiler panic with SIMD Vector debug information #481

This commit is contained in:
gingerBill
2019-11-19 23:24:49 +00:00
parent d22e5b697d
commit 0839dccfdc
3 changed files with 23 additions and 4 deletions

View File

@@ -1955,6 +1955,8 @@ void ir_print_instr(irFileBuffer *f, irModule *m, irValue *value) {
irInstrCall *call = &instr->Call;
Type *proc_type = base_type(ir_type(call->value));
GB_ASSERT(is_type_proc(proc_type));
set_procedure_abi_types(heap_allocator(), proc_type);
bool is_c_vararg = proc_type->Proc.c_vararg;
Type *result_type = call->type;
if (result_type) {