Rollup merge of #47439 - eddyb:issue-45662, r=nagisa

rustc_trans: ignore trailing padding larger than 8 bytes.

Fixes #45662 by ignoring a missing second register component, as it could be entirely padding.
This commit is contained in:
Alex Crichton 2018-01-25 12:48:46 -06:00 committed by GitHub
commit 6eb1430547
2 changed files with 10 additions and 10 deletions

View file

@ -14,10 +14,10 @@
#![feature(attr_literals)]
#[repr(align(16))]
pub struct A {
y: i64,
}
pub struct A(i64);
pub extern "C" fn foo(x: A) {}
fn main() {}
fn main() {
foo(A(0));
}