Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 2507825

Browse files
committed
Fix contracts so scanRuntime@x86chk task succeeds
[tfs-changeset: 1535699]
1 parent 39b1ec6 commit 2507825

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/vm/compile.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1875,6 +1875,8 @@ BOOL CEEPreloader::DoesMethodNeedRestoringBeforePrestubIsRun(
18751875

18761876
BOOL CEECompileInfo::IsNativeCallableMethod(CORINFO_METHOD_HANDLE handle)
18771877
{
1878+
WRAPPER_NO_CONTRACT;
1879+
18781880
MethodDesc * pMethod = GetMethod(handle);
18791881
return pMethod->HasNativeCallableAttribute();
18801882
}

src/vm/jitinterface.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2568,6 +2568,8 @@ bool CEEInfo::getSystemVAmd64PassStructInRegisterDescriptor(
25682568
/*IN*/ CORINFO_CLASS_HANDLE structHnd,
25692569
/*OUT*/ SYSTEMV_AMD64_CORINFO_STRUCT_REG_PASSING_DESCRIPTOR* structPassInRegDescPtr)
25702570
{
2571+
LIMITED_METHOD_CONTRACT;
2572+
25712573
return false;
25722574
}
25732575

0 commit comments

Comments
 (0)