diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2023-10-27 22:10:19 +0200 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2023-10-28 03:48:18 -0400 |
| commit | 396003fb06b7187917d2bebbfb494839988945fe (patch) | |
| tree | 72e8b8d4e7bd2d4b0c3545315e61c0d576c9e87a | |
| parent | 493f786b381ed45343f0a997f77edd642035a64f (diff) | |
| download | zig-396003fb06b7187917d2bebbfb494839988945fe.tar.gz zig-396003fb06b7187917d2bebbfb494839988945fe.zip | |
x86_64: assert fixes are ._ for linker_reloc
| -rw-r--r-- | src/arch/x86_64/Lower.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/x86_64/Lower.zig b/src/arch/x86_64/Lower.zig index 72c3b2af6e..7115c34eff 100644 --- a/src/arch/x86_64/Lower.zig +++ b/src/arch/x86_64/Lower.zig @@ -414,6 +414,7 @@ fn generic(lower: *Lower, inst: Mir.Inst) Error!void { => ._, .linker_reloc => { if (lower.bin_file.options.pic) { + assert(inst.data.rx.fixes == ._); const reg = inst.data.rx.r1; const extra = lower.mir.extraData(Mir.Reloc, inst.data.rx.payload).data; _ = lower.reloc(.{ .linker_reloc = extra }); @@ -435,6 +436,7 @@ fn generic(lower: *Lower, inst: Mir.Inst) Error!void { }); }, .lea => { + assert(inst.data.rx.fixes == ._); const reg = inst.data.rx.r1; const extra = lower.mir.extraData(Mir.Reloc, inst.data.rx.payload).data; try lower.emit(.none, .mov, &.{ @@ -443,6 +445,7 @@ fn generic(lower: *Lower, inst: Mir.Inst) Error!void { }); }, .mov => { + assert(inst.data.rx.fixes == ._); const reg = inst.data.rx.r1; const extra = lower.mir.extraData(Mir.Reloc, inst.data.rx.payload).data; _ = lower.reloc(.{ .linker_reloc = extra }); |
