Run SROA to fixpoint.

This commit is contained in:
Camille GILLOT 2023-02-05 12:08:42 +00:00
parent 42c9514629
commit 8e05ab04e5
4 changed files with 78 additions and 67 deletions

View file

@ -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>,
}