File tree 2 files changed +1
-7
lines changed
rustc_mir_dataflow/src/framework
2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -343,12 +343,6 @@ impl<'tcx> Body<'tcx> {
343
343
self . basic_blocks . as_mut ( )
344
344
}
345
345
346
- /// Returns `true` if a cycle exists in the control-flow graph that is reachable from the
347
- /// `START_BLOCK`.
348
- pub fn is_cfg_cyclic ( & self ) -> bool {
349
- self . basic_blocks . is_cfg_cyclic ( )
350
- }
351
-
352
346
#[ inline]
353
347
pub fn local_kind ( & self , local : Local ) -> LocalKind {
354
348
let index = local. as_usize ( ) ;
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ where
101
101
// transfer function for each block exactly once (assuming that we process blocks in RPO).
102
102
//
103
103
// In this case, there's no need to compute the block transfer functions ahead of time.
104
- if !body. is_cfg_cyclic ( ) {
104
+ if !body. basic_blocks . is_cfg_cyclic ( ) {
105
105
return Self :: new ( tcx, body, analysis, None ) ;
106
106
}
107
107
You can’t perform that action at this time.
0 commit comments