]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/transform/lower_128bit.rs
MIR: split Operand::Consume into Copy and Move.
[rust.git] / src / librustc_mir / transform / lower_128bit.rs
index 9dc5fdadbb195cf9739e2332fe452d8a2720f3e9..26621afaba41f29d14b78efcff42fa884c9a91c6 100644 (file)
@@ -105,7 +105,7 @@ fn lower_128bit_ops<'a, 'tcx>(&self, tcx: TyCtxt<'a, 'tcx, 'tcx>, mir: &mut Mir<
                                 rhs,
                                 rhs_override_ty.unwrap())),
                     });
-                    rhs = Operand::Consume(Lvalue::Local(local));
+                    rhs = Operand::Move(Lvalue::Local(local));
                 }
 
                 let call_did = check_lang_item_type(
@@ -237,4 +237,4 @@ fn item_for_checked_op(bin_op: BinOp, is_signed: bool) -> Option<(LangItem, RhsK
         _ => bug!("That should be all the checked ones?"),
     };
     Some(i)
-}
\ No newline at end of file
+}