]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #10652 : jld/rust/enum-unstruct, r=thestinger
authorbors <bors@rust-lang.org>
Tue, 26 Nov 2013 04:32:22 +0000 (20:32 -0800)
committerbors <bors@rust-lang.org>
Tue, 26 Nov 2013 04:32:22 +0000 (20:32 -0800)
This is needed so that the FFI works as expected on platforms that don't
flatten aggregates the way the AMD64 ABI does, especially for `#[repr(C)]`.

This moves more of `type_of` into `trans::adt`, because the type might
or might not be an LLVM struct.

Closes #10308.


Trivial merge