@@ -465,16 +465,16 @@ fn codegen_stmt<'tcx>(
465465 let val = crate :: constant:: codegen_tls_ref ( fx, def_id, lval. layout ( ) ) ;
466466 lval. write_cvalue ( fx, val) ;
467467 }
468- Rvalue :: BinaryOp ( bin_op, box ( ref lhs , ref rhs ) ) => {
469- let lhs = codegen_operand ( fx, lhs ) ;
470- let rhs = codegen_operand ( fx, rhs ) ;
468+ Rvalue :: BinaryOp ( bin_op, ref lhs_rhs ) => {
469+ let lhs = codegen_operand ( fx, & lhs_rhs . 0 ) ;
470+ let rhs = codegen_operand ( fx, & lhs_rhs . 1 ) ;
471471
472472 let res = crate :: num:: codegen_binop ( fx, bin_op, lhs, rhs) ;
473473 lval. write_cvalue ( fx, res) ;
474474 }
475- Rvalue :: CheckedBinaryOp ( bin_op, box ( ref lhs , ref rhs ) ) => {
476- let lhs = codegen_operand ( fx, lhs ) ;
477- let rhs = codegen_operand ( fx, rhs ) ;
475+ Rvalue :: CheckedBinaryOp ( bin_op, ref lhs_rhs ) => {
476+ let lhs = codegen_operand ( fx, & lhs_rhs . 0 ) ;
477+ let rhs = codegen_operand ( fx, & lhs_rhs . 1 ) ;
478478
479479 let res = if !fx. tcx . sess . overflow_checks ( ) {
480480 let val =
@@ -835,19 +835,15 @@ fn codegen_stmt<'tcx>(
835835 }
836836 }
837837 StatementKind :: Coverage { .. } => fx. tcx . sess . fatal ( "-Zcoverage is unimplemented" ) ,
838- StatementKind :: CopyNonOverlapping ( box rustc_middle:: mir:: CopyNonOverlapping {
839- src,
840- dst,
841- count,
842- } ) => {
843- let dst = codegen_operand ( fx, dst) ;
838+ StatementKind :: CopyNonOverlapping ( inner) => {
839+ let dst = codegen_operand ( fx, & inner. dst ) ;
844840 let pointee = dst
845841 . layout ( )
846842 . pointee_info_at ( fx, rustc_target:: abi:: Size :: ZERO )
847843 . expect ( "Expected pointer" ) ;
848844 let dst = dst. load_scalar ( fx) ;
849- let src = codegen_operand ( fx, src) . load_scalar ( fx) ;
850- let count = codegen_operand ( fx, count) . load_scalar ( fx) ;
845+ let src = codegen_operand ( fx, & inner . src ) . load_scalar ( fx) ;
846+ let count = codegen_operand ( fx, & inner . count ) . load_scalar ( fx) ;
851847 let elem_size: u64 = pointee. size . bytes ( ) ;
852848 let bytes = if elem_size != 1 {
853849 fx. bcx . ins ( ) . imul_imm ( count, elem_size as i64 )
0 commit comments