Function rustc_trans::trans::datum::rvalue_scratch_datumExperimental [-]  [+] [src]

pub fn rvalue_scratch_datum<'blk, 'tcx>(bcx: Block<'blk, 'tcx>, ty: Ty<'tcx>, name: &str) -> Datum<'tcx, Rvalue>

Allocates temporary space on the stack using alloca() and returns a by-ref Datum pointing to it. If zero is true, the space will be zeroed when it is allocated; this is normally not necessary, but in the case of automatic rooting in match statements it is possible to have temporaries that may not get initialized if a certain arm is not taken, so we must zero them. You must arrange any cleanups etc yourself!