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

Dummy TailCallCopyArgsThunk for altjit #19914

Merged
merged 2 commits into from
Oct 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/jit/morph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8316,7 +8316,15 @@ GenTree* Compiler::fgMorphCall(GenTreeCall* call)
: CORINFO_TAILCALL_NORMAL);
if (pfnCopyArgs == nullptr)
{
szFailReason = "TailCallCopyArgsThunk not available.";
if (!info.compMatchedVM)
{
// If we don't have a matched VM, we won't get valid results when asking for a thunk.
pfnCopyArgs = (void*)0xCA11CA11; // "callcall"
}
else
{
szFailReason = "TailCallCopyArgsThunk not available.";
}
}
}
#endif // !_TARGET_X86_
Expand Down