riscv64: fix incorrect branch target

This commit is contained in:
Jacob Young 2024-08-16 05:42:50 -04:00
parent 9473d76449
commit 624016e8f3

View File

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