]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_codegen_gcc/src/type_of.rs
New upstream version 1.62.1+dfsg1
[rustc.git] / compiler / rustc_codegen_gcc / src / type_of.rs
index ed8f0445ca3e20d07dc67de469b089e6b7cab5a5..2c042ba4e3a9e99780bb9c900a0fe91a60b5422b 100644 (file)
@@ -224,7 +224,7 @@ impl<'tcx> LayoutGccExt<'tcx> for TyAndLayout<'tcx> {
     }
 
     fn scalar_gcc_type_at<'gcc>(&self, cx: &CodegenCx<'gcc, 'tcx>, scalar: &abi::Scalar, offset: Size) -> Type<'gcc> {
-        match scalar.value {
+        match scalar.primitive() {
             Int(i, true) => cx.type_from_integer(i),
             Int(i, false) => cx.type_from_unsigned_integer(i),
             F32 => cx.type_f32(),
@@ -282,7 +282,7 @@ impl<'tcx> LayoutGccExt<'tcx> for TyAndLayout<'tcx> {
                 Size::ZERO
             }
             else {
-                a.value.size(cx).align_to(b.value.align(cx).abi)
+                a.size(cx).align_to(b.align(cx).abi)
             };
         self.scalar_gcc_type_at(cx, scalar, offset)
     }