From 250782557977bec590ae0a0a83de01ba3b3d6ec3 Mon Sep 17 00:00:00 2001 From: Bruce Forstall Date: Fri, 9 Oct 2015 08:38:34 -0700 Subject: [PATCH] Fix contracts so scanRuntime@x86chk task succeeds [tfs-changeset: 1535699] --- src/vm/compile.cpp | 2 ++ src/vm/jitinterface.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/vm/compile.cpp b/src/vm/compile.cpp index 0cb474e..5b33792 100644 --- a/src/vm/compile.cpp +++ b/src/vm/compile.cpp @@ -1875,6 +1875,8 @@ BOOL CEEPreloader::DoesMethodNeedRestoringBeforePrestubIsRun( BOOL CEECompileInfo::IsNativeCallableMethod(CORINFO_METHOD_HANDLE handle) { + WRAPPER_NO_CONTRACT; + MethodDesc * pMethod = GetMethod(handle); return pMethod->HasNativeCallableAttribute(); } diff --git a/src/vm/jitinterface.cpp b/src/vm/jitinterface.cpp index fae4cce..ba0c8ba 100644 --- a/src/vm/jitinterface.cpp +++ b/src/vm/jitinterface.cpp @@ -2568,6 +2568,8 @@ bool CEEInfo::getSystemVAmd64PassStructInRegisterDescriptor( /*IN*/ CORINFO_CLASS_HANDLE structHnd, /*OUT*/ SYSTEMV_AMD64_CORINFO_STRUCT_REG_PASSING_DESCRIPTOR* structPassInRegDescPtr) { + LIMITED_METHOD_CONTRACT; + return false; } -- 2.7.4