diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-07-03 18:50:16 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-07-07 22:43:52 -0700 |
| commit | 9c8aef55b4e287197b552ef18e7dd008e3a527bc (patch) | |
| tree | 0bbe77c197c55f57a22ab7e2657ce75fac24a80d /src/arch/sparc64/CodeGen.zig | |
| parent | 30c2921eb87c3157d52edd7d8ee874209a0f7538 (diff) | |
| download | zig-9c8aef55b4e287197b552ef18e7dd008e3a527bc.tar.gz zig-9c8aef55b4e287197b552ef18e7dd008e3a527bc.zip | |
std.fmt.format: use {t} for tag name rather than {s}
prevents footgun when formatted type changes from string to enum
Diffstat (limited to 'src/arch/sparc64/CodeGen.zig')
| -rw-r--r-- | src/arch/sparc64/CodeGen.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/sparc64/CodeGen.zig b/src/arch/sparc64/CodeGen.zig index ca4f699ade..9174a5850e 100644 --- a/src/arch/sparc64/CodeGen.zig +++ b/src/arch/sparc64/CodeGen.zig @@ -723,7 +723,7 @@ fn genBody(self: *Self, body: []const Air.Inst.Index) InnerError!void { if (std.debug.runtime_safety) { if (self.air_bookkeeping < old_air_bookkeeping + 1) { - std.debug.panic("in codegen.zig, handling of AIR instruction %{d} ('{s}') did not do proper bookkeeping. Look for a missing call to finishAir.", .{ inst, air_tags[@intFromEnum(inst)] }); + std.debug.panic("in codegen.zig, handling of AIR instruction %{d} ('{t}') did not do proper bookkeeping. Look for a missing call to finishAir.", .{ inst, air_tags[@intFromEnum(inst)] }); } } } |
