File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
compiler/rustc_mir_transform/src Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -101,22 +101,22 @@ impl<'tcx> crate::MirPass<'tcx> for AddCallGuards {
101
101
let is_cleanup = block. is_cleanup ;
102
102
let term = block. terminator_mut ( ) ;
103
103
let source_info = term. source_info ;
104
- match action {
104
+ let destination = match action {
105
105
Action :: Call => {
106
106
let TerminatorKind :: Call { target : Some ( ref mut destination) , .. } = term. kind
107
107
else {
108
108
unreachable ! ( )
109
109
} ;
110
- * destination = new_block ( source_info , is_cleanup , * destination ) ;
110
+ destination
111
111
}
112
112
Action :: Asm { target_index } => {
113
113
let TerminatorKind :: InlineAsm { ref mut targets, .. } = term. kind else {
114
114
unreachable ! ( )
115
115
} ;
116
- targets[ target_index] =
117
- new_block ( source_info, is_cleanup, targets[ target_index] ) ;
116
+ & mut targets[ target_index]
118
117
}
119
- }
118
+ } ;
119
+ * destination = new_block ( source_info, is_cleanup, * destination) ;
120
120
}
121
121
122
122
debug ! ( "Broke {} N edges" , new_blocks. len( ) ) ;
You can’t perform that action at this time.
0 commit comments