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

Get rid of cycles in DtoType() #4736

Merged
merged 4 commits into from
Aug 20, 2024
Merged

Get rid of cycles in DtoType() #4736

merged 4 commits into from
Aug 20, 2024

Conversation

kinke
Copy link
Member

@kinke kinke commented Aug 18, 2024

With the nice side-effect of fixing #4734.

@kinke kinke force-pushed the fix4734 branch 4 times, most recently from 34c353d to 530e9de Compare August 18, 2024 16:08
@kinke kinke changed the title Tighten checks for IR aggregate sizes Get rid of cycles in DtoType() Aug 18, 2024
To break remaining cycles in DtoType() - a class *ref* is an opaque
IR pointer nowadays.
@kinke kinke marked this pull request as ready for review August 18, 2024 17:40

if (getTypeAllocSize(t->type) != sd->structsize) {
error(sd->loc, "ICE: struct IR size does not match the frontend size");
fatal();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I presume this errors for the testcase of #4734 ? (without the fix of this PR)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, at least without assertions (I've checked the vanilla-LLVM jobs), I think those were hit earlier.

@kinke kinke merged commit b731db4 into ldc-developers:master Aug 20, 2024
20 checks passed
@kinke kinke deleted the fix4734 branch August 20, 2024 18:19
JohanEngelen pushed a commit to weka/ldc that referenced this pull request Aug 20, 2024
Get rid of cycles in DtoType()

Merge pull request ldc-developers#4712 from kinke/bump_ldc_llvm

Bump LDC-LLVM to v18.1.8

Revert "Merge pull request ldc-developers#4736 from kinke/fix4734"

This reverts commit 53dc56a73f0704bee6fc5db82bae5e0d0b98f82b.
@kinke
Copy link
Member Author

kinke commented Aug 21, 2024

Tested at Symmetry (hence the beta2 release - not requiring a fork any longer), looking good.

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.

2 participants