]> git.lizzy.rs Git - rust.git/commit
remove align_mode and rewrite GEP_tup_like to align correctly
authorNiko Matsakis <niko@alum.mit.edu>
Wed, 18 Jan 2012 04:59:49 +0000 (20:59 -0800)
committerNiko Matsakis <niko@alum.mit.edu>
Thu, 19 Jan 2012 01:20:46 +0000 (17:20 -0800)
commit54f6bf57e69153dc1bd0b2a5f6a09892ba35f036
tree448cb7c32fa9e3af0a6fc01d3f88a39a59c96a26
parentda828747e6d291f92046b6333ba2bca71ca58752
remove align_mode and rewrite GEP_tup_like to align correctly

Although the old version of GEP_tup_like was incorrect in some
cases, I do not believe we ever used it in an incorrect fashion.
In particular, it could go wrong with extended index sequences
like [0, 1, 3], but as near as I can tell we only ever use it
with short sequences like [0, i].
src/comp/middle/shape.rs
src/comp/middle/trans.rs
src/comp/middle/trans_closure.rs
src/comp/middle/ty.rs
src/comp/rustc.rc
src/test/run-pass/close-over-big-then-small-data.rs [new file with mode: 0644]