summaryrefslogtreecommitdiff
path: root/src/inc
diff options
context:
space:
mode:
authorSergey Andreenko <seandree@microsoft.com>2018-09-28 18:57:29 -0700
committerGitHub <noreply@github.com>2018-09-28 18:57:29 -0700
commitf7f0929a468f9a4d115b51da0dc5b9328413352c (patch)
treeeea57b66743373d536631e529dcaf3cb5826fc6b /src/inc
parent7d14e3a60dd9eff95e60b919cf30fd9f306e0e75 (diff)
downloadcoreclr-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.h2
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;