-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
codegen: complete handling for partial-layout objects #41438
Conversation
Any reasonable way to add a test to this? |
if (jl_is_tuple_type(dt)) | ||
if (dt->name->abstract) | ||
return 0; | ||
if (jl_is_tuple_type(dt) || jl_is_namedtuple_type(dt)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since NamedTuples are invariant is this really necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are invariant, but they don't behave properly, so yes, this is necessary to avoid crashes
c545eab
to
9847bd5
Compare
Fixes #41425