diff options
Diffstat (limited to 'src/vm/field.cpp')
-rw-r--r-- | src/vm/field.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/vm/field.cpp b/src/vm/field.cpp index 9cdb16f6b9..defccd7269 100644 --- a/src/vm/field.cpp +++ b/src/vm/field.cpp @@ -738,7 +738,7 @@ void FieldDesc::SaveContents(DataImage *image) // image. // - if (IsILOnlyRVAField()) + if (IsRVA()) { // // Move the RVA data into the prejit image. @@ -888,12 +888,15 @@ TypeHandle FieldDesc::GetExactFieldType(TypeHandle owner) GetSig(&pSig, &cSig); SigPointer sig(pSig, cSig); + ULONG callConv; + IfFailThrow(sig.GetCallingConv(&callConv)); + _ASSERTE(callConv == IMAGE_CEE_CS_CALLCONV_FIELD); + // Get the generics information SigTypeContext sigTypeContext(GetExactClassInstantiation(owner), Instantiation()); - TypeHandle thApproxFieldType = GetApproxFieldTypeHandleThrowing(); // Load the exact type - RETURN (sig.GetTypeHandleThrowing(thApproxFieldType.GetModule(), &sigTypeContext)); + RETURN (sig.GetTypeHandleThrowing(GetModule(), &sigTypeContext)); } } |