diff options
Diffstat (limited to 'src/System.Private.Reflection.Execution/src/Internal/Reflection/Execution/ReflectionExecutionDomainCallbacksImplementation.cs')
-rw-r--r-- | src/System.Private.Reflection.Execution/src/Internal/Reflection/Execution/ReflectionExecutionDomainCallbacksImplementation.cs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/System.Private.Reflection.Execution/src/Internal/Reflection/Execution/ReflectionExecutionDomainCallbacksImplementation.cs b/src/System.Private.Reflection.Execution/src/Internal/Reflection/Execution/ReflectionExecutionDomainCallbacksImplementation.cs index 1a004f50d..b6ba92e2b 100644 --- a/src/System.Private.Reflection.Execution/src/Internal/Reflection/Execution/ReflectionExecutionDomainCallbacksImplementation.cs +++ b/src/System.Private.Reflection.Execution/src/Internal/Reflection/Execution/ReflectionExecutionDomainCallbacksImplementation.cs @@ -104,18 +104,12 @@ namespace Internal.Reflection.Execution { RuntimeTypeHandle declaringTypeHandle = default(RuntimeTypeHandle); QMethodDefinition methodHandle; - RuntimeTypeHandle[] genericMethodTypeArgumentHandles; - if (!ReflectionExecution.ExecutionEnvironment.TryGetMethodForOriginalLdFtnResult(methodStartAddress, - ref declaringTypeHandle, out methodHandle, out genericMethodTypeArgumentHandles)) + if (!ReflectionExecution.ExecutionEnvironment.TryGetMethodForStartAddress(methodStartAddress, + ref declaringTypeHandle, out methodHandle)) { return null; } - if (RuntimeAugments.IsGenericType(declaringTypeHandle)) - { - declaringTypeHandle = RuntimeAugments.GetGenericDefinition(declaringTypeHandle); - } - // We don't use the type argument handles as we want the uninstantiated method info return ReflectionCoreExecution.ExecutionDomain.GetMethod(declaringTypeHandle, methodHandle, genericMethodTypeArgumentHandles: null); } |