Skip to content

Implement TypeSystemSwiftTypeRef::GetTypeBitAlign() #1901

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

Merged
merged 2 commits into from
Oct 5, 2020

Conversation

adrian-prantl
Copy link

  • Thicken generic metatypes in BindGenericTypeParameters().
    rdar://problem/69765047
  • Implement TypeSystemSwiftTypeRef::GetTypeBitAlign() (NFC)
    rdar://problem/68171432

Generic metatypes should always be thick and TypeRef::subst() performs
the exact same transformation.

<rdar://problem/69765047>
This also fixes a pretty serious bit/byte bug in
SwiftASTContext::GetTypeBitAlign() that go uncovered by the new
validation assertion.

<rdar://problem/68171432>
@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl adrian-prantl changed the base branch from swift/master to swift/main October 2, 2020 19:27
@adrian-prantl
Copy link
Author

@swift-ci test

1 similar comment
@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl adrian-prantl merged commit db28df2 into swiftlang:swift/main Oct 5, 2020
adrian-prantl added a commit that referenced this pull request Oct 5, 2020
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.

1 participant