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

Commit

Permalink
Only assert if we're emitting IL (so we don't assert during type-load).
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky committed Aug 23, 2019
1 parent 006dd1b commit 1560c11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/mlinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2856,7 +2856,7 @@ MarshalInfo::MarshalInfo(Module* pModule,
IfFailGoto(E_FAIL, lFail);
}
#ifdef _DEBUG
if (ms == MARSHAL_SCENARIO_FIELD)
if (ms == MARSHAL_SCENARIO_FIELD && fEmitsIL)
{
_ASSERTE_MSG(!IsFixedBuffer(token, pModule->GetMDImport()), "Cannot correctly marshal fixed buffers of non-blittable types");
}
Expand Down

0 comments on commit 1560c11

Please sign in to comment.