Skip to content

Commit

Permalink
Check for boxes in fgAddrCouldBeNull
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalPetryka authored Oct 25, 2024
1 parent 85f6d2d commit 124c7a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/coreclr/jit/flowgraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,9 @@ bool Compiler::fgAddrCouldBeNull(GenTree* addr)
case GT_ARR_ADDR:
return (addr->gtFlags & GTF_ARR_ADDR_NONNULL) == 0;

case GT_BOX:
return !addr->IsBoxedValue();

case GT_LCL_VAR:
return !lvaIsImplicitByRefLocal(addr->AsLclVar()->GetLclNum());

Expand Down

0 comments on commit 124c7a8

Please sign in to comment.