Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 9ff41e7

Browse files
authored
Merge pull request #19914 from CarolEidt/AltJitTailCall
Dummy TailCallCopyArgsThunk for altjit
2 parents d0d26d1 + 417c82b commit 9ff41e7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/jit/morph.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8312,7 +8312,15 @@ GenTree* Compiler::fgMorphCall(GenTreeCall* call)
83128312
: CORINFO_TAILCALL_NORMAL);
83138313
if (pfnCopyArgs == nullptr)
83148314
{
8315-
szFailReason = "TailCallCopyArgsThunk not available.";
8315+
if (!info.compMatchedVM)
8316+
{
8317+
// If we don't have a matched VM, we won't get valid results when asking for a thunk.
8318+
pfnCopyArgs = (void*)0xCA11CA11; // "callcall"
8319+
}
8320+
else
8321+
{
8322+
szFailReason = "TailCallCopyArgsThunk not available.";
8323+
}
83168324
}
83178325
}
83188326
#endif // !_TARGET_X86_

0 commit comments

Comments
 (0)