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 {...@@ -663,7 +663,6 @@ pub const DeclState = struct {
663 switch (loc) {663 switch (loc) {
664 .register => |reg| {664 .register => |reg| {
665 try dbg_info.ensureUnusedCapacity(4);665 try dbg_info.ensureUnusedCapacity(4);
666 dbg_info.appendAssumeCapacity(@intFromEnum(AbbrevKind.parameter));
667 // DW.AT.location, DW.FORM.exprloc666 // DW.AT.location, DW.FORM.exprloc
668 var expr_len = std.io.countingWriter(std.io.null_writer);667 var expr_len = std.io.countingWriter(std.io.null_writer);
669 if (reg < 32) {668 if (reg < 32) {
...@@ -683,7 +682,6 @@ pub const DeclState = struct {...@@ -683,7 +682,6 @@ pub const DeclState = struct {
683682
684 .stack => |info| {683 .stack => |info| {
685 try dbg_info.ensureUnusedCapacity(9);684 try dbg_info.ensureUnusedCapacity(9);
686 dbg_info.appendAssumeCapacity(@intFromEnum(AbbrevKind.parameter));
687 // DW.AT.location, DW.FORM.exprloc685 // DW.AT.location, DW.FORM.exprloc
688 var expr_len = std.io.countingWriter(std.io.null_writer);686 var expr_len = std.io.countingWriter(std.io.null_writer);
689 if (info.fp_register < 32) {687 if (info.fp_register < 32) {