]> git.lizzy.rs Git - rust.git/commit
Use primitive align for tagged enum fill.
authorCameron Hart <cameron.hart@gmail.com>
Fri, 21 Apr 2017 23:38:23 +0000 (09:38 +1000)
committerCameron Hart <cameron.hart@gmail.com>
Fri, 21 Apr 2017 23:38:23 +0000 (09:38 +1000)
commit946f8e6a59242a8112c6983d1336fef54bc55b9a
treef283763de951fd746c2f093af57c39a47dc7b5d3
parentc219cdfa11b0bb23f1dabbef9415ffb94f10386a
Use primitive align for tagged enum fill.

Hopefully will fix assert on ARM where vector types are being used as
the fill type for enums containing repr aligned types greater than the
largest possible native type, thus don't match the Layout's alignment
and triggers an assert.
src/librustc_trans/adt.rs