Skip to content

Commit ecf9b81

Browse files
committed
fix jump destination
1 parent efd469a commit ecf9b81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/asm/optimize_ir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3326,7 +3326,7 @@ AssignTemporaryAddresses(IRList *irl, Operand *retlabel)
33263326
/* on P1, flag short branches to the return */
33273327
if (retlabel && !gl_p2) {
33283328
for (ir = irl->head; ir; ir = ir->next) {
3329-
if (IsJump(ir) && ir->dst == retlabel
3329+
if (IsJump(ir) && JumpDest(ir) == retlabel
33303330
&& (addr - ir->addr < MAX_REL_JUMP_OFFSET_LMM))
33313331
{
33323332
ir->flags |= FLAG_RET_BRANCH;

0 commit comments

Comments
 (0)