mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
riscv: intcast got_addr
the recent merge strings PR made `got_addr` `i64` and now requires an `@intCast`.
This commit is contained in:
parent
ffb63a05a3
commit
1dfdc21c31
@ -3592,7 +3592,7 @@ fn genCall(
|
||||
|
||||
_ = try sym.getOrCreateZigGotEntry(sym_index, elf_file);
|
||||
const got_addr = sym.zigGotAddress(elf_file);
|
||||
try self.genSetReg(Type.usize, .ra, .{ .memory = got_addr });
|
||||
try self.genSetReg(Type.usize, .ra, .{ .memory = @intCast(got_addr) });
|
||||
|
||||
_ = try self.addInst(.{
|
||||
.tag = .jalr,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user