Skip to content

Commit

Permalink
riscv: intcast got_addr
Browse files Browse the repository at this point in the history
the recent merge strings PR made `got_addr` `i64` and now requires an `@intCast`.
  • Loading branch information
Rexicon226 committed May 11, 2024
1 parent ffb63a0 commit 1dfdc21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arch/riscv64/CodeGen.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1dfdc21

Please sign in to comment.