diff options
| author | gingerBill <bill@gingerbill.org> | 2018-11-11 11:44:55 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-11-11 11:44:55 +0000 |
| commit | 620d5d34f7c5712be27a92e1ab6ab48119f0a4c6 (patch) | |
| tree | 432d97f003f6eabff91e276442edfabbc13e9f9d /src/ir_print.cpp | |
| parent | f9654b6c368d21d665850f4d6f75ebffdf313854 (diff) | |
Fix issue with complication of -debug that is caused sometimes due to lambda procedures.
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index aca2fdeac..c8b255d2f 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -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; } |