Skip to content

Conversation

@vtjnash
Copy link
Member

@vtjnash vtjnash commented Jul 1, 2021

Fixes #41425

@vtjnash vtjnash added compiler:codegen Generation of LLVM IR and native code bugfix This change fixes an existing bug labels Jul 1, 2021
@vtjnash vtjnash requested a review from JeffBezanson July 1, 2021 19:07
@KristofferC
Copy link
Member

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))
Copy link
Member

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?

Copy link
Member Author

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

@vtjnash vtjnash force-pushed the jn/41425 branch 2 times, most recently from c545eab to 9847bd5 Compare July 1, 2021 20:45
@vtjnash vtjnash added backport 1.7 merge me PR is reviewed. Merge when all tests are passing labels Jul 2, 2021
@dkarrasch dkarrasch merged commit 7ffc10b into master Jul 4, 2021
@dkarrasch dkarrasch deleted the jn/41425 branch July 4, 2021 12:45
@dkarrasch dkarrasch removed the merge me PR is reviewed. Merge when all tests are passing label Jul 4, 2021
johanmon pushed a commit to johanmon/julia that referenced this pull request Jul 5, 2021
KristofferC pushed a commit that referenced this pull request Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix This change fixes an existing bug compiler:codegen Generation of LLVM IR and native code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assertion failure when testing Phylo

5 participants