authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-09-02 00:12:18+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-09-02 09:40:12+02:00
logcf3a6fe0f539fd07d99701a06d0c3672ef0992c2
treee75964492541575c90f346fef42a0c4c98b96969
parentbb2eb4443034d0a8c051f5eef184062078502ae8

dwarf: fix copy-paste typo in variable lowering code for reg and stack


1 files changed, 0 insertions(+), 2 deletions(-)

src/link/Dwarf.zig-2
......@@ -663,7 +663,6 @@ pub const DeclState = struct {
663663 switch (loc) {
664664 .register => |reg| {
665665 try dbg_info.ensureUnusedCapacity(4);
666 dbg_info.appendAssumeCapacity(@intFromEnum(AbbrevKind.parameter));
667666 // DW.AT.location, DW.FORM.exprloc
668667 var expr_len = std.io.countingWriter(std.io.null_writer);
669668 if (reg < 32) {
......@@ -683,7 +682,6 @@ pub const DeclState = struct {
683682
684683 .stack => |info| {
685684 try dbg_info.ensureUnusedCapacity(9);
686 dbg_info.appendAssumeCapacity(@intFromEnum(AbbrevKind.parameter));
687685 // DW.AT.location, DW.FORM.exprloc
688686 var expr_len = std.io.countingWriter(std.io.null_writer);
689687 if (info.fp_register < 32) {