File tree 1 file changed +14
-17
lines changed
compiler/rustc_middle/src/mir
1 file changed +14
-17
lines changed Original file line number Diff line number Diff line change @@ -109,24 +109,21 @@ impl<'tcx> TypeFoldable<'tcx> for Terminator<'tcx> {
109
109
args. visit_with ( visitor)
110
110
}
111
111
Assert { ref cond, ref msg, .. } => {
112
- if cond. visit_with ( visitor) . is_break ( ) {
113
- use AssertKind :: * ;
114
- match msg {
115
- BoundsCheck { ref len, ref index } => {
116
- len. visit_with ( visitor) ?;
117
- index. visit_with ( visitor)
118
- }
119
- Overflow ( _, l, r) => {
120
- l. visit_with ( visitor) ?;
121
- r. visit_with ( visitor)
122
- }
123
- OverflowNeg ( op) | DivisionByZero ( op) | RemainderByZero ( op) => {
124
- op. visit_with ( visitor)
125
- }
126
- ResumedAfterReturn ( _) | ResumedAfterPanic ( _) => ControlFlow :: CONTINUE ,
112
+ cond. visit_with ( visitor) ?;
113
+ use AssertKind :: * ;
114
+ match msg {
115
+ BoundsCheck { ref len, ref index } => {
116
+ len. visit_with ( visitor) ?;
117
+ index. visit_with ( visitor)
118
+ }
119
+ Overflow ( _, l, r) => {
120
+ l. visit_with ( visitor) ?;
121
+ r. visit_with ( visitor)
122
+ }
123
+ OverflowNeg ( op) | DivisionByZero ( op) | RemainderByZero ( op) => {
124
+ op. visit_with ( visitor)
127
125
}
128
- } else {
129
- ControlFlow :: CONTINUE
126
+ ResumedAfterReturn ( _) | ResumedAfterPanic ( _) => ControlFlow :: CONTINUE ,
130
127
}
131
128
}
132
129
InlineAsm { ref operands, .. } => operands. visit_with ( visitor) ,
You can’t perform that action at this time.
0 commit comments