Skip to content

Commit 301604e

Browse files
Handle GT_SWIFT_ERROR_RET in LinearScan::getKillSetForNode (#102519)
Fixes #102349. In LinearScan::getKillSetForNode, GT_SWIFT_ERROR_RET (which represents the regular return value, alongside the Swift error register value to be loaded) needs to be handled like GT_RETURN if Compiler::compIsProfilerHookNeeded is true, which is possible under some JitStress scenarios.
1 parent 8c7c780 commit 301604e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/coreclr/jit/lsrabuild.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1063,6 +1063,7 @@ regMaskTP LinearScan::getKillSetForNode(GenTree* tree)
10631063
// profiler callback would trash these registers. See vm\amd64\asmhelpers.asm for
10641064
// more details.
10651065
case GT_RETURN:
1066+
case GT_SWIFT_ERROR_RET:
10661067
killMask = getKillSetForReturn();
10671068
break;
10681069

0 commit comments

Comments
 (0)