Skip to content

Commit 28cff50

Browse files
authored
JIT: remove crossgen assert when embedding class handle (#52453)
#52210 requires class handle embedding that crossgen does not support. Remove an assert as this is now an area where crossgen2 and crossgen diverge. Resolves #52450.
1 parent cd8b68f commit 28cff50

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/coreclr/zap/zapinfo.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,10 @@ CORINFO_CLASS_HANDLE ZapInfo::embedClassHandle(CORINFO_CLASS_HANDLE handle,
15771577

15781578
if (IsReadyToRunCompilation())
15791579
{
1580-
_ASSERTE(!"embedClassHandle");
1580+
// This is supported by crossgen2
1581+
if (m_zapper->m_pOpt->m_verbose)
1582+
m_zapper->Warning(W("ReadyToRun: embedding class handle not supported\n"));
1583+
15811584
ThrowHR(E_NOTIMPL);
15821585
}
15831586

0 commit comments

Comments
 (0)