Permalink
Browse files

Disable test if we are using a Class as a valuetype (for .locals)

  • Loading branch information...
xoofx committed Oct 1, 2015
1 parent 381d422 commit 2fd97abce113ccb125e752adb316002e1b6420a6
Showing with 8 additions and 7 deletions.
  1. +8 −7 src/vm/siginfo.cpp
@@ -1528,13 +1528,14 @@ TypeHandle SigPointer::GetTypeHandleThrowing(

if (typFromSigIsClass != typLoadedIsClass)
{
if((pModule->GetMDImport()->GetMetadataStreamVersion() != MD_STREAM_VER_1X)
|| !Security::CanSkipVerification(pModule->GetDomainAssembly()))
{
pOrigModule->GetAssembly()->ThrowTypeLoadException(pModule->GetMDImport(),
typeToken,
BFA_CLASSLOAD_VALUETYPEMISMATCH);
}
// ClassAsValue: Disable this for now, as we are allowing class as value
//if((pModule->GetMDImport()->GetMetadataStreamVersion() != MD_STREAM_VER_1X)
// || !Security::CanSkipVerification(pModule->GetDomainAssembly()))
//{
// pOrigModule->GetAssembly()->ThrowTypeLoadException(pModule->GetMDImport(),
// typeToken,
// BFA_CLASSLOAD_VALUETYPEMISMATCH);
//}
}
}

0 comments on commit 2fd97ab

Please sign in to comment.