Change Successors
to impl Iterator<Item = BasicBlock>
This commit is contained in:
parent
56d540e057
commit
38bf1158bd
18 changed files with 54 additions and 55 deletions
|
@ -328,7 +328,7 @@ pub fn cleanup_kinds(mir: &mir::Body<'_>) -> IndexVec<mir::BasicBlock, CleanupKi
|
|||
bb, data, result[bb], funclet
|
||||
);
|
||||
|
||||
for &succ in data.terminator().successors() {
|
||||
for succ in data.terminator().successors() {
|
||||
let kind = result[succ];
|
||||
debug!("cleanup_kinds: propagating {:?} to {:?}/{:?}", funclet, succ, kind);
|
||||
match kind {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue