You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Use the field index passed in in `lift_leaves`
The caller has already done all the computation including bound checking.
The `field` computed in this function is also affecting all the following iterations
which is almost certainly wrong.
* Remove unnecessary type check on `field` in `lift_leaves` since it is always `Int`
* Move a branch disabling `return nothing` higher up
* Remove some duplicated calculation on field index in `getfield_elim_pass!`
* Fix `try_compute_fieldidx` to return `nothing` for non-`Int` `Integer` field index.
This can cause `getfield_nothrow` to return incorrect result.
It also gives the caller worse type info about the return value.
* Teach `getfield_nothrow` that `isbits` field cannot be undefined and getfield on such field cannot throw.
This is already handled in `isdefined_tfunc`.
* Fix a few wrong use of `isbits` in dead branches
----
Ref #26948 (fa02d34)
Ref #27126 (9100329)
0 commit comments