Update src/arch/x86_64/CodeGen.zig

Co-authored-by: Jacob Young <jacobly0@users.noreply.github.com>
This commit is contained in:
Jakub Konka 2024-08-16 11:49:23 +02:00 committed by GitHub
parent 624016e8f3
commit 73f385eec5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1382,7 +1382,10 @@ fn asmImmediate(self: *Self, tag: Mir.Inst.FixedTag, imm: Immediate) !void {
.reloc => .rel,
},
.data = switch (imm) {
.reloc => |x| .{ .reloc = x },
.reloc => |x| reloc: {
assert(tag[0] == ._);
break :reloc .{ .reloc = x };
},
.signed, .unsigned => .{ .i = .{
.fixes = tag[0],
.i = switch (imm) {