Skip to content

Conversation

@yuri91
Copy link
Member

@yuri91 yuri91 commented May 1, 2025

The real issue was that a collapsed struct used as a secondary base would leave a gap in the downcast array, shifting all following bases' indices by 1.
Instead of preventing a collapse of such structs, we instead fill the array slot with null.
This is ok because the slot is not accessed (if it was, the struct would not have collapsed). We just need to keep the indexing consistent.

The real issue was that a collapsed struct used as a secondary base would
leave a gap in the downcast array, shifting all following bases' indices
by 1.
Instead of preventing a collapse of such structs, we instead fill the
array slot with null.
This is ok because the slot is not accessed (if it was, the struct would
not have collapsed). We just need to keep the indexing consistent.
@yuri91 yuri91 requested a review from alexp-sssup May 1, 2025 09:00
@alexp-sssup alexp-sssup merged commit dd7412f into master May 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants