File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
compiler/rustc_mir_transform/src Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -741,7 +741,6 @@ impl<'tcx> MutVisitor<'tcx> for VnState<'_, 'tcx> {
741
741
}
742
742
743
743
fn visit_statement ( & mut self , stmt : & mut Statement < ' tcx > , location : Location ) {
744
- self . super_statement ( stmt, location) ;
745
744
if let StatementKind :: Assign ( box ( _, ref mut rvalue) ) = stmt. kind
746
745
// Do not try to simplify a constant, it's already in canonical shape.
747
746
&& !matches ! ( rvalue, Rvalue :: Use ( Operand :: Constant ( _) ) )
@@ -755,6 +754,8 @@ impl<'tcx> MutVisitor<'tcx> for VnState<'_, 'tcx> {
755
754
* rvalue = Rvalue :: Use ( Operand :: Copy ( local. into ( ) ) ) ;
756
755
self . reused_locals . insert ( local) ;
757
756
}
757
+ } else {
758
+ self . super_statement ( stmt, location) ;
758
759
}
759
760
}
760
761
}
You can’t perform that action at this time.
0 commit comments