aboutsummaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorDavid Rubin <daviru007@icloud.com>2024-05-10 21:40:53 -0700
committerDavid Rubin <daviru007@icloud.com>2024-05-11 02:17:24 -0700
commit1dfdc21c31a027a34213a2e1f27433d4e609d634 (patch)
treef0f5477cad019e67ad8343372ea763239b04ad52 /src/arch
parentffb63a05a3327e64bcf8ec7fd05c6aab8d304480 (diff)
downloadzig-1dfdc21c31a027a34213a2e1f27433d4e609d634.tar.gz
zig-1dfdc21c31a027a34213a2e1f27433d4e609d634.zip
riscv: intcast `got_addr`
the recent merge strings PR made `got_addr` `i64` and now requires an `@intCast`.
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/riscv64/CodeGen.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/riscv64/CodeGen.zig b/src/arch/riscv64/CodeGen.zig
index ed177ed1f1..762251bc44 100644
--- a/src/arch/riscv64/CodeGen.zig
+++ b/src/arch/riscv64/CodeGen.zig
@@ -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,