pointee_info_at() does not need mutable access
This commit is contained in:
parent
0d1754e8bf
commit
592fd2818c
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
|
|||
let count = self.codegen_operand(&mut bx, count).immediate();
|
||||
let pointee_layout = dst_val
|
||||
.layout
|
||||
.pointee_info_at(&mut bx, rustc_target::abi::Size::ZERO)
|
||||
.pointee_info_at(&bx, rustc_target::abi::Size::ZERO)
|
||||
.expect("Expected pointer");
|
||||
let bytes = bx.mul(count, bx.const_usize(pointee_layout.size.bytes()));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue