new_thin_place
is only used with align
= layout.align.abi
and is not `pub`.
This commit is contained in:
parent
7445622bcb
commit
0cc1c8d2e7
1 changed files with 2 additions and 3 deletions
|
@ -45,14 +45,13 @@ impl<'a, 'tcx, V: CodegenObject> PlaceRef<'tcx, V> {
|
|||
bx: &mut Bx,
|
||||
llval: V,
|
||||
layout: TyLayout<'tcx>,
|
||||
align: Align,
|
||||
) -> PlaceRef<'tcx, V> {
|
||||
assert!(!bx.cx().type_has_metadata(layout.ty));
|
||||
PlaceRef {
|
||||
llval,
|
||||
llextra: None,
|
||||
layout,
|
||||
align
|
||||
align: layout.align.abi
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -498,7 +497,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
|
|||
// with a static that is an extern_type.
|
||||
let layout = cx.layout_of(self.monomorphize(&ty));
|
||||
let static_ = bx.get_static(*def_id);
|
||||
PlaceRef::new_thin_place(bx, static_, layout, layout.align.abi)
|
||||
PlaceRef::new_thin_place(bx, static_, layout)
|
||||
},
|
||||
mir::PlaceRef {
|
||||
base,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue