File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed
rustc_mir_dataflow/src/framework Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -341,12 +341,6 @@ impl<'tcx> Body<'tcx> {
341
341
self . basic_blocks . as_mut ( )
342
342
}
343
343
344
- /// Returns `true` if a cycle exists in the control-flow graph that is reachable from the
345
- /// `START_BLOCK`.
346
- pub fn is_cfg_cyclic ( & self ) -> bool {
347
- self . basic_blocks . is_cfg_cyclic ( )
348
- }
349
-
350
344
#[ inline]
351
345
pub fn local_kind ( & self , local : Local ) -> LocalKind {
352
346
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