Skip to content

Commit 7d4a87c

Browse files
committed
Avoid emitting unreachable code in AArch64FarReturnOp.
1 parent bbf11a1 commit 7d4a87c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

substratevm/src/com.oracle.svm.core.graal.aarch64/src/com/oracle/svm/core/graal/aarch64/AArch64FarReturnOp.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public void emitCode(CompilationResultBuilder crb, AArch64MacroAssembler masm) {
7373
/* No need to restore anything in the frame of the new stack pointer. */
7474
masm.mov(64, AArch64.sp, asRegister(sp));
7575
returnTo(asRegister(ip), masm);
76+
return;
7677
}
7778

7879
/*

0 commit comments

Comments
 (0)