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

CodeView: add support for imaginary and complex types #1730

Merged
merged 1 commit into from
Sep 2, 2016

Conversation

rainers
Copy link
Contributor

@rainers rainers commented Sep 1, 2016

Maps imaginary types to the floating point types, creates a struct for complex types.


LLMetadata *elems[] = {
CreateMemberType(0, elemtype, file, "re", 0, PROTpublic),
CreateMemberType(0, elemtype, file, "im", t->alignsize(), PROTpublic)};
Copy link
Member

Choose a reason for hiding this comment

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

I think there's a chance that t->alignsize() != getTypeAllocSize(T) for 80-bit real. So I'd suggest using getTypeAllocSize(T) here, like below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, changed that. alignsize was even called on the wrong type.
Also removed the failing assert left over from copy 'n paste.

@kinke
Copy link
Member

kinke commented Sep 2, 2016

Travis and CircleCI retriggered.

@kinke kinke merged commit 7ec9802 into ldc-developers:master Sep 2, 2016
@rainers
Copy link
Contributor Author

rainers commented Sep 3, 2016

Thanks, another one checked off the list at #1716 (but a different one added, too).

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