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

Commit 417c82b

Browse files
committed
Use compMatchedVM
1 parent 92428fa commit 417c82b

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/jit/morph.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8316,12 +8316,15 @@ GenTree* Compiler::fgMorphCall(GenTreeCall* call)
83168316
: CORINFO_TAILCALL_NORMAL);
83178317
if (pfnCopyArgs == nullptr)
83188318
{
8319-
#ifdef ALT_JIT
8320-
// If this is an altjit, we may not get a thunk from the VM, so use a fake one.
8321-
pfnCopyArgs = (void*)0xdddddddd;
8322-
#else
8323-
szFailReason = "TailCallCopyArgsThunk not available.";
8324-
#endif
8319+
if (!info.compMatchedVM)
8320+
{
8321+
// If we don't have a matched VM, we won't get valid results when asking for a thunk.
8322+
pfnCopyArgs = (void*)0xCA11CA11; // "callcall"
8323+
}
8324+
else
8325+
{
8326+
szFailReason = "TailCallCopyArgsThunk not available.";
8327+
}
83258328
}
83268329
}
83278330
#endif // !_TARGET_X86_

0 commit comments

Comments
 (0)