mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-29 03:27:44 +00:00
Move predecessors
from Body to BasicBlocks
This commit is contained in:
parent
e34ee2484b
commit
cac25cde18
@ -161,7 +161,7 @@ impl<'tcx> LateLintPass<'tcx> for RedundantClone {
|
|||||||
// `arg` is a reference as it is `.deref()`ed in the previous block.
|
// `arg` is a reference as it is `.deref()`ed in the previous block.
|
||||||
// Look into the predecessor block and find out the source of deref.
|
// Look into the predecessor block and find out the source of deref.
|
||||||
|
|
||||||
let ps = &mir.predecessors()[bb];
|
let ps = &mir.basic_blocks.predecessors()[bb];
|
||||||
if ps.len() != 1 {
|
if ps.len() != 1 {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user