Fix issue with complication of -debug that is caused sometimes due to lambda procedures.

This commit is contained in:
gingerBill
2018-11-11 11:44:55 +00:00
parent f9654b6c36
commit 620d5d34f7
3 changed files with 20 additions and 9 deletions
+3 -1
View File
@@ -227,7 +227,9 @@ bool ir_print_debug_location(irFileBuffer *f, irModule *m, irValue *v) {
}
} else {
irProcedure *proc = v->Instr.block->proc;
GB_ASSERT(proc->is_entry_point || (string_compare(proc->name, str_lit(IR_STARTUP_RUNTIME_PROC_NAME)) == 0));
if (proc->entity != nullptr) {
GB_ASSERT(proc->is_entry_point || (string_compare(proc->name, str_lit(IR_STARTUP_RUNTIME_PROC_NAME)) == 0));
}
}
return false;
}