diff options
author | Andrew Au <andrewau@microsoft.com> | 2017-10-25 23:47:35 +0300 |
---|---|---|
committer | Andrew Au <andrewau@microsoft.com> | 2017-10-25 23:47:35 +0300 |
commit | 935484f5948ec7b34d6bcb7a2e1b6ea126e0a15d (patch) | |
tree | 8c295eb443c73836a59cc5e6618b8b413eb71404 /src/System.Private.TypeLoader | |
parent | 774effe77863aba661ea565d9bdd0e0075d49e23 (diff) |
Rollback the change for VirtualMethodFix - this break amd64chk build
[tfs-changeset: 1679189]
Diffstat (limited to 'src/System.Private.TypeLoader')
-rw-r--r-- | src/System.Private.TypeLoader/src/Internal/Runtime/DebuggerSupport/DebuggerSupport.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/System.Private.TypeLoader/src/Internal/Runtime/DebuggerSupport/DebuggerSupport.cs b/src/System.Private.TypeLoader/src/Internal/Runtime/DebuggerSupport/DebuggerSupport.cs index f05e8dc47..84fd6e436 100644 --- a/src/System.Private.TypeLoader/src/Internal/Runtime/DebuggerSupport/DebuggerSupport.cs +++ b/src/System.Private.TypeLoader/src/Internal/Runtime/DebuggerSupport/DebuggerSupport.cs @@ -87,8 +87,7 @@ namespace Internal.Runtime.DebuggerSupport public static unsafe IntPtr GetInterfaceDispatchFunctionPointer(IntPtr thisPointer, RuntimeTypeHandle interfaceType, uint virtualMethodSlot) { - IntPtr locationOfThisPointer = (IntPtr)(&thisPointer); - object instance = Unsafe.As<IntPtr, Object>(ref *(IntPtr*)locationOfThisPointer); + object instance = Unsafe.As<IntPtr, object>(ref thisPointer); return RuntimeAugments.ResolveDispatch(instance, interfaceType, (int)virtualMethodSlot); } |