mirror of
https://github.com/ziglang/zig.git
synced 2025-12-27 08:33:15 +00:00
dwarf: fix copy-paste typo in variable lowering code for reg and stack
This commit is contained in:
parent
bb2eb44430
commit
cf3a6fe0f5
@ -663,7 +663,6 @@ pub const DeclState = struct {
|
||||
switch (loc) {
|
||||
.register => |reg| {
|
||||
try dbg_info.ensureUnusedCapacity(4);
|
||||
dbg_info.appendAssumeCapacity(@intFromEnum(AbbrevKind.parameter));
|
||||
// DW.AT.location, DW.FORM.exprloc
|
||||
var expr_len = std.io.countingWriter(std.io.null_writer);
|
||||
if (reg < 32) {
|
||||
@ -683,7 +682,6 @@ pub const DeclState = struct {
|
||||
|
||||
.stack => |info| {
|
||||
try dbg_info.ensureUnusedCapacity(9);
|
||||
dbg_info.appendAssumeCapacity(@intFromEnum(AbbrevKind.parameter));
|
||||
// DW.AT.location, DW.FORM.exprloc
|
||||
var expr_len = std.io.countingWriter(std.io.null_writer);
|
||||
if (info.fp_register < 32) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user