Skip to content

Commit c3d97e8

Browse files
amanasifkhalidRuihan-Yin
authored andcommittedMay 30, 2024
Handle GT_SWIFT_ERROR_RET in LinearScan::getKillSetForNode (dotnet#102519)
Fixes dotnet#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 848d89e commit c3d97e8

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)