Commit ea694d8
authored
Skip nullcheck frozen object in unbox optimization (#121709)
Fixes the build crash in #121697.
Since with TrimMode=partial, we consider all static fields targets of
reflection, we cannot allow inlining their contents. With full trimming
allowed, the optimization is unlocked and we hit an assert when trying
to nullcheck a constant.1 parent 81856e7 commit ea694d8
1 file changed
+20
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10490 | 10490 | | |
10491 | 10491 | | |
10492 | 10492 | | |
10493 | | - | |
10494 | | - | |
10495 | | - | |
10496 | | - | |
10497 | | - | |
10498 | | - | |
10499 | | - | |
10500 | | - | |
10501 | | - | |
10502 | | - | |
| 10493 | + | |
| 10494 | + | |
| 10495 | + | |
| 10496 | + | |
| 10497 | + | |
| 10498 | + | |
| 10499 | + | |
| 10500 | + | |
| 10501 | + | |
| 10502 | + | |
| 10503 | + | |
| 10504 | + | |
| 10505 | + | |
| 10506 | + | |
| 10507 | + | |
| 10508 | + | |
| 10509 | + | |
| 10510 | + | |
| 10511 | + | |
| 10512 | + | |
10503 | 10513 | | |
10504 | 10514 | | |
10505 | 10515 | | |
| |||
0 commit comments