Commit ad634537ce

Jacob Young <jacobly0@users.noreply.github.com>
2024-08-16 20:42:50
x86_64: move end of prologue to after function arguments are spilled
This prevents the first step in to a function from displaying bogus argument values.
1 parent 7a0acc8
Changed files (1)
src
arch
x86_64
src/arch/x86_64/Emit.zig
@@ -222,13 +222,7 @@ pub fn emitMir(emit: *Emit) Error!void {
                     else => unreachable,
                     .pseudo_dbg_prologue_end_none => {
                         switch (emit.debug_output) {
-                            .dwarf => |dw| {
-                                try dw.setPrologueEnd();
-                                log.debug("mirDbgPrologueEnd (line={d}, col={d})", .{
-                                    emit.prev_di_line, emit.prev_di_column,
-                                });
-                                try emit.dbgAdvancePCAndLine(emit.prev_di_line, emit.prev_di_column);
-                            },
+                            .dwarf => |dw| try dw.setPrologueEnd(),
                             .plan9 => {},
                             .none => {},
                         }