This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Commit 78fedeb
committed
Fix off-by-one error
The code in loop hoisting visiting a comma for a static init helper call
and static field access tried to clear the childrenHoistable bit for the
field, but had an off-by-one error and was instead clearing the bit for
the helper call, which could lead to missed legal helper call hoists.
Update that code to simply assert that the flag is already set for the
field (using the correct index), which must be true since the check is
guarded by a check that childIsCctorDependent is true for it.1 parent 1e9a45e commit 78fedeb
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6178 | 6178 | | |
6179 | 6179 | | |
6180 | 6180 | | |
6181 | | - | |
6182 | | - | |
6183 | | - | |
| 6181 | + | |
| 6182 | + | |
| 6183 | + | |
6184 | 6184 | | |
6185 | 6185 | | |
6186 | 6186 | | |
| |||
0 commit comments