Skip to content

Commit 1a8fd54

Browse files
authored
JIT: Avoid overriding argument register with 'jmp' epilog (#114899)
1 parent 2474c62 commit 1a8fd54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/jit/codegenxarch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10643,7 +10643,7 @@ void CodeGen::genFnEpilog(BasicBlock* block)
1064310643
// do nothing before popping the callee-saved registers
1064410644
}
1064510645
#ifdef TARGET_X86
10646-
else if (compiler->compLclFrameSize == REGSIZE_BYTES)
10646+
else if ((compiler->compLclFrameSize == REGSIZE_BYTES) && !compiler->compJmpOpUsed)
1064710647
{
1064810648
// "pop ecx" will make ESP point to the callee-saved registers
1064910649
inst_RV(INS_pop, REG_ECX, TYP_I_IMPL);

0 commit comments

Comments
 (0)