Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/coreclr/jit/emitwasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,16 @@ void emitter::emitDispIns(

case IF_CODE_SIZE:
{
FuncInfoDsc* const func = m_compiler->funGetFunc(emitCurIG->igFuncIdx);
// We should either have a non-null ig parameter, or emitCurIG should be set
insGroup* curIG = ig;
Comment thread
adamperlin marked this conversation as resolved.
if (curIG == nullptr)
{
curIG = emitCurIG;
}
assert(curIG != nullptr);

FuncInfoDsc* const func = m_compiler->funGetFunc(curIG->igFuncIdx);
assert(func != nullptr);

emitLocation* const startLoc = func->startLoc;
emitLocation* const endLoc = func->endLoc;
Expand Down
Loading