diff --git a/src/coreclr/jit/gentree.h b/src/coreclr/jit/gentree.h index 86d7f5bb102e6..9751bb93ffd74 100644 --- a/src/coreclr/jit/gentree.h +++ b/src/coreclr/jit/gentree.h @@ -5788,7 +5788,7 @@ struct GenTreeArrAddr : GenTreeUnOp , m_elemType(elemType) , m_firstElemOffset(firstElemOffset) { - assert(addr->TypeIs(TYP_BYREF)); + assert(addr->TypeIs(TYP_BYREF) || addr->IsIntegralConst(0)); assert(((elemType == TYP_STRUCT) && (elemClassHandle != NO_CLASS_HANDLE)) || (elemClassHandle == NO_CLASS_HANDLE));