report the bad integer size instead of just the fact that it is bad
This commit is contained in:
parent
b2d476eb38
commit
1c40fb0da1
1 changed files with 1 additions and 1 deletions
|
@ -570,7 +570,7 @@ impl<'a, 'tcx> Memory<'a, 'tcx> {
|
|||
2 => Ok(self.layout.i16_align.abi() as usize),
|
||||
4 => Ok(self.layout.i32_align.abi() as usize),
|
||||
8 => Ok(self.layout.i64_align.abi() as usize),
|
||||
_ => bug!("bad integer size"),
|
||||
_ => bug!("bad integer size: {}", size),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue