Skip to content

Commit 0cc1c8d

Browse files
committed
new_thin_place is only used with align = layout.align.abi
and is not `pub`.
1 parent 7445622 commit 0cc1c8d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/librustc_codegen_ssa/mir/place.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,13 @@ impl<'a, 'tcx, V: CodegenObject> PlaceRef<'tcx, V> {
4545
bx: &mut Bx,
4646
llval: V,
4747
layout: TyLayout<'tcx>,
48-
align: Align,
4948
) -> PlaceRef<'tcx, V> {
5049
assert!(!bx.cx().type_has_metadata(layout.ty));
5150
PlaceRef {
5251
llval,
5352
llextra: None,
5453
layout,
55-
align
54+
align: layout.align.abi
5655
}
5756
}
5857

@@ -498,7 +497,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
498497
// with a static that is an extern_type.
499498
let layout = cx.layout_of(self.monomorphize(&ty));
500499
let static_ = bx.get_static(*def_id);
501-
PlaceRef::new_thin_place(bx, static_, layout, layout.align.abi)
500+
PlaceRef::new_thin_place(bx, static_, layout)
502501
},
503502
mir::PlaceRef {
504503
base,

0 commit comments

Comments
 (0)