Run SROA to fixpoint.
This commit is contained in:
parent
42c9514629
commit
8e05ab04e5
4 changed files with 78 additions and 67 deletions
|
@ -824,7 +824,7 @@ pub fn iter_fields<'tcx>(
|
|||
}
|
||||
|
||||
/// Returns all locals with projections that have their reference or address taken.
|
||||
fn excluded_locals(body: &Body<'_>) -> IndexVec<Local, bool> {
|
||||
pub fn excluded_locals(body: &Body<'_>) -> IndexVec<Local, bool> {
|
||||
struct Collector {
|
||||
result: IndexVec<Local, bool>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue