riscv: intcast got_addr

the recent merge strings PR made `got_addr` `i64` and now requires an `@intCast`.
This commit is contained in:
David Rubin
2024-05-10 21:40:53 -07:00
parent ffb63a05a3
commit 1dfdc21c31

View File

@@ -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,