Skip to content

Commit

Permalink
JIT: remove crossgen assert when embedding class handle (#52453)
Browse files Browse the repository at this point in the history
#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.
  • Loading branch information
AndyAyersMS authored May 7, 2021
1 parent cd8b68f commit 28cff50
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/coreclr/zap/zapinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,10 @@ CORINFO_CLASS_HANDLE ZapInfo::embedClassHandle(CORINFO_CLASS_HANDLE handle,

if (IsReadyToRunCompilation())
{
_ASSERTE(!"embedClassHandle");
// This is supported by crossgen2
if (m_zapper->m_pOpt->m_verbose)
m_zapper->Warning(W("ReadyToRun: embedding class handle not supported\n"));

ThrowHR(E_NOTIMPL);
}

Expand Down

0 comments on commit 28cff50

Please sign in to comment.