Move is_cfg_cyclic
from Body to BasicBlocks
This commit is contained in:
parent
c9dd1d9983
commit
2446b17745
2 changed files with 1 additions and 7 deletions
|
@ -343,12 +343,6 @@ impl<'tcx> Body<'tcx> {
|
|||
self.basic_blocks.as_mut()
|
||||
}
|
||||
|
||||
/// Returns `true` if a cycle exists in the control-flow graph that is reachable from the
|
||||
/// `START_BLOCK`.
|
||||
pub fn is_cfg_cyclic(&self) -> bool {
|
||||
self.basic_blocks.is_cfg_cyclic()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn local_kind(&self, local: Local) -> LocalKind {
|
||||
let index = local.as_usize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue