Commit 1dfdc21c31

David Rubin <daviru007@icloud.com>
2024-05-11 06:40:53
riscv: intcast `got_addr`
the recent merge strings PR made `got_addr` `i64` and now requires an `@intCast`.
1 parent ffb63a0
Changed files (1)
src
arch
riscv64
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,