slice_for_each gives a reference already

This commit is contained in:
Mark Simulacrum 2016-12-19 18:51:10 -07:00
parent 295ea0d6c3
commit 15b9b27bb0

View File

@ -95,7 +95,7 @@ pub fn trans_rvalue(&mut self,
let size = C_uint(bcx.ccx, size);
let base = base::get_dataptr(&bcx, dest.llval);
tvec::slice_for_each(&bcx, base, tr_elem.ty, size, |bcx, llslot| {
self.store_operand(&bcx, llslot, tr_elem);
self.store_operand(bcx, llslot, tr_elem);
})
}