compiler: Directly use rustc_abi in codegen
This commit is contained in:
@@ -78,7 +78,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
|
||||
let count = self.codegen_operand(bx, count).immediate();
|
||||
let pointee_layout = dst_val
|
||||
.layout
|
||||
.pointee_info_at(bx, rustc_target::abi::Size::ZERO)
|
||||
.pointee_info_at(bx, rustc_abi::Size::ZERO)
|
||||
.expect("Expected pointer");
|
||||
let bytes = bx.mul(count, bx.const_usize(pointee_layout.size.bytes()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user