Move dominators
from Body to BasicBlocks
This commit is contained in:
parent
dfa6a7cbde
commit
17adfeb2b4
5 changed files with 10 additions and 9 deletions
|
@ -26,7 +26,7 @@ use rustc_target::abi::{Size, VariantIdx};
|
|||
use polonius_engine::Atom;
|
||||
pub use rustc_ast::Mutability;
|
||||
use rustc_data_structures::fx::FxHashSet;
|
||||
use rustc_data_structures::graph::dominators::{dominators, Dominators};
|
||||
use rustc_data_structures::graph::dominators::Dominators;
|
||||
use rustc_index::bit_set::BitMatrix;
|
||||
use rustc_index::vec::{Idx, IndexVec};
|
||||
use rustc_serialize::{Decodable, Encodable};
|
||||
|
@ -447,11 +447,6 @@ impl<'tcx> Body<'tcx> {
|
|||
.unwrap_or_else(|| Either::Right(block_data.terminator()))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn dominators(&self) -> Dominators<BasicBlock> {
|
||||
dominators(&self.basic_blocks)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn yield_ty(&self) -> Option<Ty<'tcx>> {
|
||||
self.generator.as_ref().and_then(|generator| generator.yield_ty)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue