/// Returns a place for an indirect reference to an unsized place.
Returns a place for an indirect reference to an unsized place.
Returns a place for an indirect reference to an unsized place .
pub fn alloca_unsized_indirect(bx: &Builder<'a, 'll, 'tcx>, layout: TyLayout<'tcx>, name: &str)
                  -> PlaceRef<'ll, 'tcx> {
        debug!("alloca_unsized_indirect({:?}: {:?})", name, layout);
        assert!(layout.is_unsized(), "tried to allocate indirect place for sized values");
        let ptr_ty = bx.cx.tcx.mk_mut_ptr(layout.ty);
        let ptr_layout = bx.cx.layout_of(ptr_ty);
        Self::alloca(bx, ptr_layout, name)
    }
pub fn alloca_unsized_indirect ( bx : & Builder < ' a , ' ll , ' tcx > , layout : TyLayout < ' tcx > , name : & str ) -> PlaceRef < ' ll , ' tcx > { debug ! ( " " name layout ) ; assert ! ( layout is_unsized ( ) " " ) ; let ptr_ty = bx . cx . tcx . mk_mut_ptr ( layout . ty ) ; let ptr_layout = bx . cx . layout_of ( ptr_ty ) ; Self :: alloca ( bx , ptr_layout , name ) }
Returns a place for an indirect reference to an unsized place.
Returns a place for an indirect reference to an unsized place .
bx
&Builder<'a, 'll, 'tcx>
layout
TyLayout<'tcx>
name
&str