Skip to content

Commit 5f21826

Browse files
authored
JIT: Initialize matrix for enumerators in object stack allocation (#113879)
1 parent 1f4482c commit 5f21826

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/coreclr/jit/objectalloc.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3415,7 +3415,8 @@ void ObjectAllocator::CloneAndSpecialize(CloneInfo* info)
34153415
newEnumeratorDsc->lvTracked = 1;
34163416
newEnumeratorDsc->lvVarIndex = (unsigned short)m_nextLocalIndex; // grr
34173417
assert(newEnumeratorDsc->lvVarIndex < comp->lvaTrackedToVarNumSize);
3418-
comp->lvaTrackedToVarNum[newEnumeratorDsc->lvVarIndex] = newEnumeratorLocal;
3418+
comp->lvaTrackedToVarNum[newEnumeratorDsc->lvVarIndex] = newEnumeratorLocal;
3419+
m_ConnGraphAdjacencyMatrix[newEnumeratorDsc->lvVarIndex] = BitVecOps::MakeEmpty(&m_bitVecTraits);
34193420
m_nextLocalIndex++;
34203421
assert(m_maxPseudoLocals > 0);
34213422
assert(newEnumeratorDsc->lvVarIndex < m_firstPseudoLocalIndex);

0 commit comments

Comments
 (0)