Skip to content

Commit

Permalink
Apply Egor's patch
Browse files Browse the repository at this point in the history
Co-authored-by: EgorBo <egorbo@gmail.com>
  • Loading branch information
am11 and EgorBo committed Dec 3, 2021
1 parent 025510f commit 638836f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1644,6 +1644,7 @@ private void ceeInfoGetCallInfo(
// 3) JIT intrinsics - since they have pre-defined behavior
devirt = targetMethod.OwningType.IsValueType ||
(targetMethod.OwningType.IsDelegate && targetMethod.Name == "Invoke") ||
(targetMethod.OwningType.IsObject && targetMethod.Name == "GetType") ||
(targetMethod.IsIntrinsic && getIntrinsicID(targetMethod, null) != CorInfoIntrinsics.CORINFO_INTRINSIC_Illegal);

callVirtCrossingVersionBubble = true;
Expand Down
1 change: 0 additions & 1 deletion src/coreclr/vm/jitinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5007,7 +5007,6 @@ void CEEInfo::getCallInfo(

bool directCall = false;
bool resolvedCallVirt = false;
bool callVirtCrossingVersionBubble = false;

// Delegate targets are always treated as direct calls here. (It would be nice to clean it up...).
if (flags & CORINFO_CALLINFO_LDFTN)
Expand Down

0 comments on commit 638836f

Please sign in to comment.