Function rustc_trans::trans::_match::store_argExperimental
[-]
[+]
[src]
pub fn store_arg<'blk, 'tcx>(bcx: Block<'blk, 'tcx>, pat: &Pat, arg: Datum<'tcx, Rvalue>, arg_scope: ScopeId) -> Block<'blk, 'tcx>
Generates code for argument patterns like fn foo(<pat>: T).
Creates entries in the lllocals map for each of the bindings
in pat.
Arguments
patis the argument patternllvalis a pointer to the argument value (in other words, if the argument type isT, thenllvalis aT*). In some cases, this code may zero out the memoryllvalpoints at.