File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
compiler/rustc_mir_transform/src Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -30,15 +30,6 @@ impl<'tcx> crate::MirPass<'tcx> for RemoveNoopLandingPads {
30
30
return ;
31
31
}
32
32
33
- // make sure there's a resume block without any statements
34
- let resume_block = {
35
- let mut patch = MirPatch :: new ( body) ;
36
- let resume_block = patch. resume_block ( ) ;
37
- patch. apply ( body) ;
38
- resume_block
39
- } ;
40
- debug ! ( ?resume_block) ;
41
-
42
33
let mut nop_landing_pads = DenseBitSet :: new_empty ( body. basic_blocks . len ( ) ) ;
43
34
44
35
// This is a post-order traversal, so that if A post-dominates B
@@ -56,6 +47,15 @@ impl<'tcx> crate::MirPass<'tcx> for RemoveNoopLandingPads {
56
47
return ;
57
48
}
58
49
50
+ // make sure there's a resume block without any statements
51
+ let resume_block = {
52
+ let mut patch = MirPatch :: new ( body) ;
53
+ let resume_block = patch. resume_block ( ) ;
54
+ patch. apply ( body) ;
55
+ resume_block
56
+ } ;
57
+ debug ! ( ?resume_block) ;
58
+
59
59
let basic_blocks = body. basic_blocks . as_mut ( ) ;
60
60
for ( bb, bbdata) in basic_blocks. iter_enumerated_mut ( ) {
61
61
debug ! ( "processing {:?}" , bb) ;
You can’t perform that action at this time.
0 commit comments