Skip to content

Commit bdbaf25

Browse files
Take down SPMI
1 parent 319febe commit bdbaf25

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/coreclr/jit/gentree.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18321,8 +18321,11 @@ FieldSeq::FieldSeq(CORINFO_FIELD_HANDLE fieldHnd, ssize_t offset, FieldKind fiel
1832118321
assert((handleValue & FIELD_KIND_MASK) == 0);
1832218322
m_fieldHandleAndKind = handleValue | static_cast<uintptr_t>(fieldKind);
1832318323

18324-
// TODO-PhysicalVN: assert that "offset" is correct.
1832518324
assert(JitTls::GetCompiler()->eeIsFieldStatic(fieldHnd) == IsStaticField());
18325+
if (fieldKind == FieldKind::Instance)
18326+
{
18327+
assert(static_cast<ssize_t>(JitTls::GetCompiler()->info.compCompHnd->getFieldOffset(fieldHnd)) == offset);
18328+
}
1832618329
}
1832718330

1832818331
#ifdef FEATURE_SIMD

0 commit comments

Comments
 (0)