diff options
author | Sergey Andreenko <seandree@microsoft.com> | 2018-09-28 18:57:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-28 18:57:29 -0700 |
commit | f7f0929a468f9a4d115b51da0dc5b9328413352c (patch) | |
tree | eea57b66743373d536631e529dcaf3cb5826fc6b /src/inc | |
parent | 7d14e3a60dd9eff95e60b919cf30fd9f306e0e75 (diff) | |
download | coreclr-f7f0929a468f9a4d115b51da0dc5b9328413352c.tar.gz coreclr-f7f0929a468f9a4d115b51da0dc5b9328413352c.tar.bz2 coreclr-f7f0929a468f9a4d115b51da0dc5b9328413352c.zip |
Make `structType` optional in jitEEInterface method `getFieldType`. (#20191)
* Make `structType` optional in `getFieldType`.
The declaration in corinfo.h says: "if 'structType' == 0, then don't bother the structure info". However, `getFieldTypeInternal ` did not check this case.
* Do not bother the structure info when we do not need it from `getFieldType`.
Diffstat (limited to 'src/inc')
-rw-r--r-- | src/inc/corinfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inc/corinfo.h b/src/inc/corinfo.h index 89cd95f758..97f3be9cee 100644 --- a/src/inc/corinfo.h +++ b/src/inc/corinfo.h @@ -2640,7 +2640,7 @@ public: // result of calling getMemberParent. virtual CorInfoType getFieldType( CORINFO_FIELD_HANDLE field, - CORINFO_CLASS_HANDLE *structType, + CORINFO_CLASS_HANDLE *structType = NULL, CORINFO_CLASS_HANDLE memberParent = NULL /* IN */ ) = 0; |