mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 08:08:50 +00:00
Fix -debug bug with internal startup procedures
This commit is contained in:
@@ -3120,6 +3120,11 @@ void ir_value_set_debug_location(irProcedure *proc, irValue *v) {
|
|||||||
return; // Already set
|
return; // Already set
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (proc->is_startup) {
|
||||||
|
// ignore startup procedures
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
irModule *m = proc->module;
|
irModule *m = proc->module;
|
||||||
GB_ASSERT(m->debug_location_stack.count > 0);
|
GB_ASSERT(m->debug_location_stack.count > 0);
|
||||||
v->loc = *array_end_ptr(&m->debug_location_stack);
|
v->loc = *array_end_ptr(&m->debug_location_stack);
|
||||||
|
|||||||
Reference in New Issue
Block a user