From: Jan Kotas Date: Tue, 8 Dec 2020 20:16:36 +0000 (-0800) Subject: Simplify devirtualization in crossgen2 (#45744) X-Git-Tag: submit/tizen/20210909.063632~4260 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5432a66018c2499b88a54276f468ea903ed2b8de;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Simplify devirtualization in crossgen2 (#45744) --- diff --git a/src/coreclr/tools/Common/JitInterface/CorInfoImpl.cs b/src/coreclr/tools/Common/JitInterface/CorInfoImpl.cs index 4433a9b..b310794 100644 --- a/src/coreclr/tools/Common/JitInterface/CorInfoImpl.cs +++ b/src/coreclr/tools/Common/JitInterface/CorInfoImpl.cs @@ -984,11 +984,9 @@ namespace Internal.JitInterface impl = getUnboxingThunk(impl); } - MethodDesc exactImpl = TypeSystemHelpers.FindMethodOnTypeWithMatchingTypicalMethod(objType, impl); - info->devirtualizedMethod = ObjectToHandle(impl); info->requiresInstMethodTableArg = false; - info->exactContext = contextFromType(exactImpl.OwningType); + info->exactContext = contextFromType(impl.OwningType); return true; }