diff options
author | Sejong OH <sejooh@microsoft.com> | 2016-05-16 15:42:07 -0700 |
---|---|---|
committer | Sejong OH <sejooh@microsoft.com> | 2016-05-17 11:18:26 -0700 |
commit | 5e664c56ec991b9d73a00a0628e114d0c2b0dfec (patch) | |
tree | 711150ce5568cb909c03f02be2663b7bb3f9ccf6 /src/jit/_typeinfo.h | |
parent | b6af6ea39a20cfd1fe2630c555693bd3b1fd06df (diff) | |
download | coreclr-5e664c56ec991b9d73a00a0628e114d0c2b0dfec.tar.gz coreclr-5e664c56ec991b9d73a00a0628e114d0c2b0dfec.tar.bz2 coreclr-5e664c56ec991b9d73a00a0628e114d0c2b0dfec.zip |
Add typeInfo::GetMehtod2 to avoid checking GetType == TI_METHOD.
If FEATURE_CORECLR is enabled, the pointer type is not known to be a method pointer type when GetMethod is called in the importer.
Diffstat (limited to 'src/jit/_typeinfo.h')
-rwxr-xr-x[-rw-r--r--] | src/jit/_typeinfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/jit/_typeinfo.h b/src/jit/_typeinfo.h index c71294a8b8..2e04343b3c 100644..100755 --- a/src/jit/_typeinfo.h +++ b/src/jit/_typeinfo.h @@ -555,6 +555,13 @@ public: return m_method; } + // If FEATURE_CORECLR is enabled, GetMethod can be called + // before the pointer type is known to be a method pointer type. + CORINFO_METHOD_HANDLE GetMethod2() const + { + return m_method; + } + // Get this item's type // If primitive, returns the primitive type (TI_*) // If not primitive, returns: |