<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/codegen/debug-alignment.rs, branch 1.67.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.67.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.67.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2022-06-07T20:38:35+00:00</updated>
<entry>
<title>Specify DWARF alignment in bits, not bytes.</title>
<updated>2022-06-07T20:38:35+00:00</updated>
<author>
<name>Patrick Walton</name>
<email>pcwalton@fb.com</email>
</author>
<published>2022-06-07T20:38:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fe533e862cd2d2d65e14970d327365dfe593aa27'/>
<id>urn:sha1:fe533e862cd2d2d65e14970d327365dfe593aa27</id>
<content type='text'>
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
</content>
</entry>
</feed>
