slice_for_each gives a reference already
This commit is contained in:
parent
295ea0d6c3
commit
15b9b27bb0
@ -95,7 +95,7 @@ pub fn trans_rvalue(&mut self,
|
|||||||
let size = C_uint(bcx.ccx, size);
|
let size = C_uint(bcx.ccx, size);
|
||||||
let base = base::get_dataptr(&bcx, dest.llval);
|
let base = base::get_dataptr(&bcx, dest.llval);
|
||||||
tvec::slice_for_each(&bcx, base, tr_elem.ty, size, |bcx, llslot| {
|
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);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user