trans/datum -- move mutable variable into closure

This commit is contained in:
Niko Matsakis 2014-02-07 14:43:05 -05:00
parent f7e5d8418c
commit 64c9b5c3ae
1 changed files with 1 additions and 1 deletions

View File

@ -480,9 +480,9 @@ impl Datum<Expr> {
* no cleanup scheduled).
*/
let mut bcx = bcx;
self.match_kind(
|l| {
let mut bcx = bcx;
match l.appropriate_rvalue_mode(bcx.ccx()) {
ByRef => {
let scratch = rvalue_scratch_datum(bcx, l.ty, name);