1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-17 15:46:05 +02:00

Added changes to support CompilerExplorer

This commit is contained in:
Brian Fiete 2019-10-11 05:58:08 -07:00
parent c97b074fee
commit c9e0ab6089
20 changed files with 389 additions and 156 deletions

View file

@ -160,31 +160,7 @@ namespace System.Reflection
dataPtr = *(void**)dataPtr;
handled = true;
}
else
{
if (!underlyingType.IsSubtypeOf(paramType))
{
if (underlyingType.IsGenericType)
{
var ptrTypedPrimitive = (SpecializedGenericType)underlyingType;
if ((ptrTypedPrimitive.mTypeFlags.HasFlag(.Sys_PointerT)))
{
let elementType = Type.GetType(ptrTypedPrimitive.mResolvedTypeRefs[0]);
if (elementType == paramType)
{
dataPtr = *(void**)dataPtr;
handled = true;
}
}
}
/*if (underlyingType.IsSpecialType(TypeInstance.[Friend]sPointerTType, "System", "Pointer", 2))
{
}*/
}
}
if (!handled)
{
if (!underlyingType.IsSubtypeOf(paramType))