summaryrefslogtreecommitdiff
path: root/src/vm/securitytransparentassembly.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm/securitytransparentassembly.cpp')
-rw-r--r--src/vm/securitytransparentassembly.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/vm/securitytransparentassembly.cpp b/src/vm/securitytransparentassembly.cpp
index 4a23c276d8..be13cab612 100644
--- a/src/vm/securitytransparentassembly.cpp
+++ b/src/vm/securitytransparentassembly.cpp
@@ -690,11 +690,7 @@ CorInfoIsAccessAllowedResult SecurityTransparent::RequiresTransparentCodeChecks(
// Check to see if the callee has a LinkDemand, if so we may need to intercept the call.
if (pCalleeMD->RequiresLinktimeCheck())
{
- if (pCalleeMD->RequiresLinkTimeCheckHostProtectionOnly()
-#ifndef CROSSGEN_COMPILE
- && GetHostProtectionManager()->GetProtectedCategories() == eNoChecks
-#endif // CROSSGEN_COMPILE
- )
+ if (pCalleeMD->RequiresLinkTimeCheckHostProtectionOnly())
{
// exclude HPA which are marked as LinkDemand and there is no HostProtection enabled currently
return CORINFO_ACCESS_ALLOWED;