summaryrefslogtreecommitdiff
path: root/src/vm/method.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm/method.cpp')
-rw-r--r--src/vm/method.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/vm/method.cpp b/src/vm/method.cpp
index ae98743073..1b7aa5c17e 100644
--- a/src/vm/method.cpp
+++ b/src/vm/method.cpp
@@ -5393,18 +5393,22 @@ BOOL MethodDesc::HasNativeCallableAttribute()
}
CONTRACTL_END;
-// enable only for amd64 now, other platforms are not tested.
-#if defined(_TARGET_AMD64_)
-
#ifdef FEATURE_CORECLR
HRESULT hr = GetMDImport()->GetCustomAttributeByName(GetMemberDef(),
g_NativeCallableAttribute,
NULL,
NULL);
- return (hr == S_OK);
+ if (hr == S_OK)
+ {
+ // enable only for amd64/arm64 now, other platforms are not tested.
+#if defined(_TARGET_AMD64_) || defined(_TARGET_ARM64_)
+ return TRUE;
+#else
+ _ASSERTE(!"HasNativeCallableAttribute is not yet implemented.");
+#endif // _TARGET_AMD64_ || _TARGET_ARM64_
+ }
#endif //FEATURE_CORECLR
-#endif //_TARGET_AMD64_
return FALSE;
}