Skip to content

Commit e7b9edb

Browse files
committed
revert unnecessary change in gccover.
1 parent 7cc425d commit e7b9edb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/coreclr/vm/gccover.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,15 @@ void SetupGcCoverage(NativeCodeVersion nativeCodeVersion, BYTE* methodStartPtr)
264264
void ReplaceInstrAfterCall(PBYTE instrToReplace, MethodDesc* callMD)
265265
{
266266
ReturnKind returnKind = callMD->GetReturnKind(true);
267+
if (!IsValidReturnKind(returnKind))
268+
{
269+
#if defined(TARGET_AMD64) && defined(TARGET_UNIX)
270+
_ASSERTE(!"Unexpected return kind for x64 Unix.");
271+
#else
272+
// SKip GC coverage after the call.
273+
return;
274+
#endif
275+
}
267276
_ASSERTE(IsValidReturnKind(returnKind));
268277

269278
bool ispointerKind = IsPointerReturnKind(returnKind);

0 commit comments

Comments
 (0)