Skip to content

Commit

Permalink
riscv64: fix incorrect branch target
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobly0 committed Aug 16, 2024
1 parent 9473d76 commit 624016e
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 @@ -6594,7 +6594,7 @@ fn genInlineMemset(
.tag = .beq,
.data = .{
.b_type = .{
.inst = @intCast(func.mir_instructions.len + 4), // points after the last inst
.inst = @intCast(func.mir_instructions.len + 3), // points after the last inst
.rs1 = count,
.rs2 = .zero,
},
Expand Down

0 comments on commit 624016e

Please sign in to comment.