Skip to content

Commit 2d73b37

Browse files
authored
Fix flags in EarlyProp after nullcheck is removed (#112717)
1 parent da4f0a3 commit 2d73b37

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/coreclr/jit/earlyprop.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,9 @@ bool Compiler::optFoldNullCheck(GenTree* tree, LocalNumberToNullCheckTreeMap* nu
457457
nullCheckTree->SetHasOrderingSideEffect();
458458
nullCheckTree->gtFlags |= GTF_IND_NONFAULTING;
459459

460+
// The current indir is no longer non-faulting.
461+
tree->gtFlags &= ~GTF_IND_NONFAULTING;
462+
460463
if (nullCheckParent != nullptr)
461464
{
462465
nullCheckParent->gtFlags &= ~GTF_DONT_CSE;

0 commit comments

Comments
 (0)