`GTF_CALL_UNMANAGED` is a member of the wrong enum and it's something
that would be set on `call->gtFlags` except that at this point it isn't.
Check against the actual unmanaged calling conventions.
Commit migrated from https://github.com/dotnet/coreclr/commit/
0b4e58ac7a455640a5410b6f647ca3044426ea56
if (IsTargetAbi(CORINFO_CORERT_ABI))
{
- bool managedCall = (calliSig.callConv & GTF_CALL_UNMANAGED) == 0;
+ bool managedCall = (((calliSig.callConv & CORINFO_CALLCONV_MASK) != CORINFO_CALLCONV_STDCALL) &&
+ ((calliSig.callConv & CORINFO_CALLCONV_MASK) != CORINFO_CALLCONV_C) &&
+ ((calliSig.callConv & CORINFO_CALLCONV_MASK) != CORINFO_CALLCONV_THISCALL) &&
+ ((calliSig.callConv & CORINFO_CALLCONV_MASK) != CORINFO_CALLCONV_FASTCALL));
if (managedCall)
{
addFatPointerCandidate(call->AsCall());