]> git.lizzy.rs Git - rust.git/commit
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)
commit720bcd81de9d5fbdb60761fc929d40e487005722
treed4b3631a582b7bca65f25945b5b22c89a3708fce
parentffaee0fd96b5d23ae9668605d1425111f4210c58
parent0c04a26b3f8ba70ea686e1a365729835c62c26eb
auto merge of #10652 : jld/rust/enum-unstruct, r=thestinger

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.