Skip to content

Commit 4de00db

Browse files
committed
Fix debug build
1 parent 81138d7 commit 4de00db

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/coreclr/vm/jithelpers.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,8 @@ HCIMPLEND
12271227

12281228
#if defined(TARGET_X86)
12291229
EXTERN_C FCDECL1(void, IL_Throw, Object* obj);
1230-
EXTERN_C FCIMPL2(void, IL_Throw_x86, Object* obj, TransitionBlock* transitionBlock)
1230+
EXTERN_C FCDECL2(void, IL_Throw_x86, Object* obj, TransitionBlock* transitionBlock);
1231+
FCIMPL2(void, IL_Throw_x86, Object* obj, TransitionBlock* transitionBlock)
12311232
#else
12321233
FCIMPL1(void, IL_Throw, Object* obj)
12331234
#endif
@@ -1286,7 +1287,7 @@ FCIMPL1(void, IL_Throw, Object* obj)
12861287
INSTALL_UNWIND_AND_CONTINUE_HANDLER;
12871288

12881289
#if defined(_DEBUG) && defined(TARGET_X86)
1289-
g_ExceptionEIP = transitionBlock->m_ReturnAddress;
1290+
g_ExceptionEIP = (PVOID)transitionBlock->m_ReturnAddress;
12901291
#endif // defined(_DEBUG) && defined(TARGET_X86)
12911292

12921293
if (oref == 0)
@@ -1330,7 +1331,8 @@ FCIMPLEND
13301331

13311332
#if defined(TARGET_X86)
13321333
EXTERN_C FCDECL0(void, IL_Rethrow);
1333-
EXTERN_C FCIMPL1(void, IL_Rethrow_x86, TransitionBlock* transitionBlock)
1334+
EXTERN_C FCDECL1(void, IL_Rethrow_x86, TransitionBlock* transitionBlock);
1335+
FCIMPL1(void, IL_Rethrow_x86, TransitionBlock* transitionBlock)
13341336
#else
13351337
FCIMPL0(void, IL_Rethrow)
13361338
#endif
@@ -1395,7 +1397,8 @@ FCIMPLEND
13951397

13961398
#if defined(TARGET_X86)
13971399
EXTERN_C FCDECL1(void, IL_ThrowExact, Object* obj);
1398-
EXTERN_C FCIMPL2(void, IL_ThrowExact_x86, Object* obj, TransitionBlock* transitionBlock)
1400+
EXTERN_C FCDECL2(void, IL_ThrowExact_x86, Object* obj, TransitionBlock* transitionBlock);
1401+
FCIMPL2(void, IL_ThrowExact_x86, Object* obj, TransitionBlock* transitionBlock)
13991402
#else
14001403
FCIMPL1(void, IL_ThrowExact, Object* obj)
14011404
#endif
@@ -1429,7 +1432,7 @@ FCIMPL1(void, IL_ThrowExact, Object* obj)
14291432
INSTALL_UNWIND_AND_CONTINUE_HANDLER;
14301433

14311434
#if defined(_DEBUG) && defined(TARGET_X86)
1432-
g_ExceptionEIP = transitionBlock->m_ReturnAddress;
1435+
g_ExceptionEIP = (PVOID)transitionBlock->m_ReturnAddress;
14331436
#endif // defined(_DEBUG) && defined(TARGET_X86)
14341437

14351438
RaiseTheExceptionInternalOnly(oref, FALSE);

0 commit comments

Comments
 (0)