]> git.lizzy.rs Git - rust.git/commit
Treat `struct(T)` the same as `struct S { x: T }` WRT being immediate args
authorBjörn Steinbrink <bsteinbr@gmail.com>
Fri, 9 Jan 2015 16:40:13 +0000 (17:40 +0100)
committerBjörn Steinbrink <bsteinbr@gmail.com>
Fri, 9 Jan 2015 16:40:13 +0000 (17:40 +0100)
commit2100b10c4c61ac7c0fe67ae4c9a390eaf3708ae4
tree9a5d44627c3bbbf1cae66b70c0d8ad0596124593
parent6354d60ede5e2a7e60fa46f85243efd8dbe89711
Treat `struct(T)` the same as `struct S { x: T }` WRT being immediate args

Currently we pass a `struct S(u64)` as an immediate value on i686, but a
`struct S { x: u64 }` is passed indirectly. This seems pretty wrong,
as they both have the same underlying LLVM type `{ i64 }`, no sense in
treating them differently.
src/librustc_trans/trans/common.rs