run_pass fn

This commit is contained in:
nora 2022-12-17 23:16:56 +01:00
parent ed8da36a92
commit 865d8a7bc9
2 changed files with 63 additions and 57 deletions

View file

@ -112,7 +112,7 @@ impl Processor for DeleteUnusedFunctions {
fn refresh_state(&mut self) -> Result<()> {
let (diags, _) = self.build.get_diags().context("getting diagnostics")?;
self.diags = diags;
self.invalid = HashSet::new();
self.invalid.clear();
Ok(())
}