Skip to content

Conversation

@davezarzycki
Copy link
Contributor

  1. Shrink from 4 bytes to 1 byte.
  2. Assert that alignments are power-of-two at run time.
  3. Assert that alignments are power-of-two at compile time when possible.
  4. Eliminate "isZero"/"no alignment" from the type. Use llvm::Optional.

1) Shrink from 4 bytes to 1 byte.
2) Assert that alignments are power-of-two at run time.
3) Assert that alignments are power-of-two at compile time when possible.
4) Eliminate "isZero"/"no alignment" from the type. Use llvm::Optional.
@davezarzycki
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

@atrick atrick left a comment

Choose a reason for hiding this comment

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

LGTM

@davezarzycki davezarzycki merged commit e05d4e9 into swiftlang:master May 27, 2020
@davezarzycki davezarzycki deleted the pr32018 branch May 27, 2020 09:27
@rjmccall
Copy link
Contributor

I wonder if we should just move to llvm::Alignment now that it exists.

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.

4 participants