]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_target/abi/call/x86_64.rs
Various minor/cosmetic improvements to code
[rust.git] / src / librustc_target / abi / call / x86_64.rs
index 4c9446508939e21082bbacb0f310b77ccecfb03a..0f27300dc3bac869b7eaa5a601921f202fe282a1 100644 (file)
@@ -15,7 +15,7 @@
 use abi::{self, Abi, HasDataLayout, LayoutOf, Size, TyLayout, TyLayoutMethods};
 
 /// Classification of "eightbyte" components.
-// NB: the order of the variants is from general to specific,
+// N.B., the order of the variants is from general to specific,
 // such that `unify(a, b)` is the "smaller" of `a` and `b`.
 #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug)]
 enum Class {
@@ -41,7 +41,7 @@ fn classify<'a, Ty, C>(cx: &C, layout: TyLayout<'a, Ty>,
         where Ty: TyLayoutMethods<'a, C> + Copy,
             C: LayoutOf<Ty = Ty, TyLayout = TyLayout<'a, Ty>> + HasDataLayout
     {
-        if !off.is_abi_aligned(layout.align) {
+        if !off.is_aligned(layout.align.abi) {
             if !layout.is_zst() {
                 return Err(Memory);
             }