Skip to content

Commit

Permalink
Limit type size assertions to 64bit systems
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jan 14, 2019
1 parent 1e32b97 commit d7f57d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc/mir/interpret/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ pub enum Scalar<Tag=(), Id=AllocId> {
Ptr(Pointer<Tag, Id>),
}

#[cfg(target_arch = "x86_64")]
static_assert!(SCALAR_SIZE: ::std::mem::size_of::<Scalar>() == 24);

impl<Tag> fmt::Display for Scalar<Tag> {
Expand Down

0 comments on commit d7f57d4

Please sign in to comment.