Skip to content
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

Fix incorrect tuple handling #2763

Merged
merged 1 commit into from
Jun 9, 2018
Merged

Fix incorrect tuple handling #2763

merged 1 commit into from
Jun 9, 2018

Conversation

SeanTAllen
Copy link
Member

I don't know the compiler well and I went off what I knew and believe I
found the root cause for our tuple bugs that started with 9222f08. Which
was in turn fixing #2735.

However, a number of bugs came from that fix because, it didn't fix the
root issue. Which was gen_localdecl returning GEN_NOVALUE where
GEN_NOTNEEDED was needed. This is why, prior to 9222f08, gen_tuple was
returning GEN_NOTNEEDED when the value it has was GEN_NOVALUE.

Fixes #2760

I don't know the compiler well and I went off what I knew and believe I
found the root cause for our tuple bugs that started with 9222f08. Which
was in turn fixing #2735.

However, a number of bugs came from that fix because, it didn't fix the
root issue. Which was `gen_localdecl` returning GEN_NOVALUE where
GEN_NOTNEEDED was needed. This is why, prior to 9222f08, `gen_tuple` was
returning GEN_NOTNEEDED when the value it has was GEN_NOVALUE.

Fixes #2760
@SeanTAllen SeanTAllen requested review from jemc and Praetonus June 8, 2018 02:12
@SeanTAllen SeanTAllen added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label Jun 8, 2018
@jemc
Copy link
Member

jemc commented Jun 9, 2018

I see that your change basically reverts 9222f08, but keeps the regression test from it, which is still passing. This confused me at first, so I went to look at the other code that had been changed. It seems like #2757 is responsible for the real fix here that 9222f08 was trying to acheive, so it makes sense to me now.

@SeanTAllen
Copy link
Member Author

@jemc yeah, its a two parter. i fixed one bug with the first commit but it left other bugs. took me a while to figure out what was going on.

@SeanTAllen SeanTAllen merged commit ee6c41e into master Jun 9, 2018
@SeanTAllen SeanTAllen deleted the issue-2760 branch June 9, 2018 13:03
ponylang-main added a commit that referenced this pull request Jun 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segfault in 'Simplify the CFG' pass with Pony 0.22.6
2 participants