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

Specify DWARF alignment in bits, not bytes. #97846

Merged
merged 1 commit into from
Jun 8, 2022

Commits on Jun 7, 2022

  1. Specify DWARF alignment in bits, not bytes.

    In DWARF, alignment of types is specified in bits, as is made clear by the
    parameter name `AlignInBits`. However, `rustc` was incorrectly passing a byte
    alignment. This commit fixes that.
    
    This was noticed in upstream LLVM when I tried to check in a test consisting of
    LLVM IR generated from `rustc` and it triggered assertions [1].
    
    [1]: https://reviews.llvm.org/D126835
    pcwalton committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    fe533e8 View commit details
    Browse the repository at this point in the history