Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify jl_nth_union_component to be more robust in the case of trying…
… to get an invalid 'n'. This can happen if a struct or array containing Unions gets allocated using 'uninitialized' memory and the corresponding union selector bytes may contain arbitrary values. In these cases, we always know that u->a (where 'u' is a Union type) is a valid, non-Union type, so just return that instead. Fixes #25310
- Loading branch information