Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Au <andrewau@microsoft.com>2017-10-25 23:47:35 +0300
committerAndrew Au <andrewau@microsoft.com>2017-10-25 23:47:35 +0300
commit935484f5948ec7b34d6bcb7a2e1b6ea126e0a15d (patch)
tree8c295eb443c73836a59cc5e6618b8b413eb71404 /src/System.Private.TypeLoader
parent774effe77863aba661ea565d9bdd0e0075d49e23 (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.cs3
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);
}