Remove uses of ResultsClonedCursor.

By just cloning the entire `Results` in the one place where
`ResultsClonedCursor` was used. This is extra allocations but the
performance effect is negligible.
This commit is contained in:
Nicholas Nethercote
2023-11-24 11:14:00 +11:00
parent 5f5263bfc8
commit 500e55ba8c
4 changed files with 17 additions and 17 deletions

View File

@@ -31,6 +31,7 @@ use super::{
pub type EntrySets<'tcx, A> = IndexVec<BasicBlock, <A as AnalysisDomain<'tcx>>::Domain>;
/// A dataflow analysis that has converged to fixpoint.
#[derive(Clone)]
pub struct Results<'tcx, A, E = EntrySets<'tcx, A>>
where
A: Analysis<'tcx>,