1
Fork 0

MIR dataflow: Rename function to always_storage_live_locals

Related to #99021.
This commit is contained in:
pierwill 2022-07-07 12:34:33 -05:00
parent 20dd693013
commit 8a1c1ec8b2
4 changed files with 7 additions and 7 deletions

View file

@ -7,7 +7,7 @@ use rustc_middle::mir::{self, Local};
//
// FIXME: Currently, we need to traverse the entire MIR to compute this. We should instead store it
// as a field in the `LocalDecl` for each `Local`.
pub fn always_live_locals(body: &mir::Body<'_>) -> BitSet<Local> {
pub fn always_storage_live_locals(body: &mir::Body<'_>) -> BitSet<Local> {
let mut always_live_locals = BitSet::new_filled(body.local_decls.len());
for block in body.basic_blocks() {