pub fn store_ty<'blk, 'tcx>(cx: Block<'blk, 'tcx>, v: ValueRef, dst: ValueRef, t: Ty<'tcx>) {
    if cx.unreachable.get() {
        return;
    }

    if common::type_is_fat_ptr(cx.tcx(), t) {
        Store(cx, ExtractValue(cx, v, abi::FAT_PTR_ADDR), expr::get_dataptr(cx, dst));
        Store(cx, ExtractValue(cx, v, abi::FAT_PTR_EXTRA), expr::get_meta(cx, dst));
    } else {
        let store = Store(cx, from_arg_ty(cx, v, t), to_arg_ty_ptr(cx, dst, t));
        unsafe {
            llvm::LLVMSetAlignment(store, type_of::align_of(cx.ccx(), t));
        }
    }
}
/// Helper for storing values in memory. Does the necessary conversion if the in-memory type
/// differs from the type used for SSA values.
Helper for storing values in memory. Does the necessary conversion if the in-memory type
differs from the type used for SSA values.
Helper for storing values in memory . Does the necessary conversion if the in - memory type differs from the type used for SSA values .
pub fn store_ty<'blk, 'tcx>(cx: Block<'blk, 'tcx>, v: ValueRef, dst: ValueRef, t: Ty<'tcx>) {
    if cx.unreachable.get() {
        return;
    }
    if common::type_is_fat_ptr(cx.tcx(), t) {
        Store(cx, ExtractValue(cx, v, abi::FAT_PTR_ADDR), expr::get_dataptr(cx, dst));
        Store(cx, ExtractValue(cx, v, abi::FAT_PTR_EXTRA), expr::get_meta(cx, dst));
    } else {
        let store = Store(cx, from_arg_ty(cx, v, t), to_arg_ty_ptr(cx, dst, t));
        unsafe {
            llvm::LLVMSetAlignment(store, type_of::align_of(cx.ccx(), t));
        }
    }
}
pub fn store_ty < ' blk , ' tcx > ( cx : Block < ' blk , ' tcx > , v : ValueRef , dst : ValueRef , t : Ty < ' tcx > ) { if cx . unreachable . get ( ) { return ; } if common :: type_is_fat_ptr ( cx . tcx ( ) , t ) { Store ( cx , ExtractValue ( cx , v , abi :: FAT_PTR_ADDR ) , expr :: get_dataptr ( cx , dst ) ) ; Store ( cx , ExtractValue ( cx , v , abi :: FAT_PTR_EXTRA ) , expr :: get_meta ( cx , dst ) ) ; } else { let store = Store ( cx , from_arg_ty ( cx , v , t ) , to_arg_ty_ptr ( cx , dst , t ) ) ; unsafe { llvm :: LLVMSetAlignment ( store , type_of :: align_of ( cx . ccx ( ) , t ) ) ; } } }
Helper for storing values in memory.
Helper for storing values in memory .
cx
Block<'blk, 'tcx>
v
ValueRef
dst
ValueRef
t
Ty<'tcx>
cx
Block<'blk, 'tcx>
v
ValueRef
dst
ValueRef
t
Ty<'tcx>