mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix range loop & vals debug info
This commit is contained in:
@@ -1299,6 +1299,7 @@ gb_internal lbAddr lb_store_range_stmt_val(lbProcedure *p, Ast *stmt_val, lbValu
|
|||||||
if (LLVMIsALoadInst(value.value)) {
|
if (LLVMIsALoadInst(value.value)) {
|
||||||
lbValue ptr = lb_address_from_load_or_generate_local(p, value);
|
lbValue ptr = lb_address_from_load_or_generate_local(p, value);
|
||||||
lb_add_entity(p->module, e, ptr);
|
lb_add_entity(p->module, e, ptr);
|
||||||
|
lb_add_debug_local_variable(p, ptr.value, e->type, e->token);
|
||||||
return lb_addr(ptr);
|
return lb_addr(ptr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user