Skip to content

Commit 606a31f

Browse files
Add a getter for the current state to DataflowResultsCursor
1 parent a44881d commit 606a31f

File tree

1 file changed

+4
-0
lines changed
  • src/librustc_mir/dataflow

1 file changed

+4
-0
lines changed

src/librustc_mir/dataflow/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,10 @@ where
453453
{
454454
self.flow_state.each_gen_bit(f)
455455
}
456+
457+
pub fn get(&self) -> &BitSet<BD::Idx> {
458+
self.flow_state.as_dense()
459+
}
456460
}
457461

458462
pub fn state_for_location<'tcx, T: BitDenotation<'tcx>>(loc: Location,

0 commit comments

Comments
 (0)