Skip to content
Open
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
4 changes: 2 additions & 2 deletions src/coreclr/jit/importer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9814,9 +9814,9 @@ void Compiler::impImportBlockCode(BasicBlock* block)
// Field's type is a byref-like struct -> address is not on the heap.
indirFlags |= GTF_IND_TGT_NOT_HEAP;
}
else
else if ((fieldInfo.fieldFlags & CORINFO_FLG_FIELD_STATIC) == 0)
{
// Field's owner is a byref-like struct -> address is not on the heap.
// Field's owner is a byref-like struct and the field is not static -> address is not on the heap.
CORINFO_CLASS_HANDLE fldOwner = info.compCompHnd->getFieldClass(resolvedToken.hField);
if ((fldOwner != NO_CLASS_HANDLE) && eeIsByrefLike(fldOwner))
{
Expand Down
Loading