]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir/src/transform/early_otherwise_branch.rs
Shrink the size of Rvalue by 16 bytes
[rust.git] / compiler / rustc_mir / src / transform / early_otherwise_branch.rs
index b16a99d7f0dcaee9b7b0634d040653d5c1b9346f..1128599876cb76723e1872f2d8fac6b6090a7ae8 100644 (file)
@@ -91,8 +91,10 @@ fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
                 opt_to_apply.infos[0].first_switch_info.discr_used_in_switch;
             let not_equal_rvalue = Rvalue::BinaryOp(
                 not_equal,
-                Operand::Copy(Place::from(second_discriminant_temp)),
-                Operand::Copy(first_descriminant_place),
+                box (
+                    Operand::Copy(Place::from(second_discriminant_temp)),
+                    Operand::Copy(first_descriminant_place),
+                ),
             );
             patch.add_statement(
                 end_of_block_location,