Skip to content

Commit 18b2ef1

Browse files
authored
JIT: Fix infinite loop in copy prop GT_COMMA update logic (#105196)
1 parent 7e273c6 commit 18b2ef1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/jit/copyprop.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ bool Compiler::optCopyProp(
296296
JITDUMP(" Updating COMMA parent VN [%06u]\n", dspTreeID(parent));
297297
ValueNumPair op1Xvnp = vnStore->VNPExceptionSet(parent->AsOp()->gtOp1->gtVNPair);
298298
parent->SetVNs(vnStore->VNPWithExc(parent->AsOp()->gtOp2->gtVNPair, op1Xvnp));
299-
parent = tree->gtGetParent(nullptr);
299+
parent = parent->gtGetParent(nullptr);
300300
}
301301
}
302302
gtUpdateSideEffects(stmt, tree);

0 commit comments

Comments
 (0)