mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-25 23:14:59 -07:00
Integrate numerous debug fixes from #1877
This commit is contained in:
@@ -2746,10 +2746,6 @@ lbAddr lb_add_local(lbProcedure *p, Type *type, Entity *e, bool zero_init, i32 p
|
||||
}
|
||||
}
|
||||
|
||||
if (zero_init) {
|
||||
lb_mem_zero_ptr(p, ptr, type, alignment);
|
||||
}
|
||||
|
||||
lbValue val = {};
|
||||
val.value = ptr;
|
||||
val.type = alloc_type_pointer(type);
|
||||
@@ -2759,6 +2755,10 @@ lbAddr lb_add_local(lbProcedure *p, Type *type, Entity *e, bool zero_init, i32 p
|
||||
lb_add_debug_local_variable(p, ptr, type, e->token);
|
||||
}
|
||||
|
||||
if (zero_init) {
|
||||
lb_mem_zero_ptr(p, ptr, type, alignment);
|
||||
}
|
||||
|
||||
return lb_addr(val);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user