diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2019-08-29 20:47:45 -0700 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2019-09-16 17:11:18 -0700 |
| commit | 606a31f46a066ba0d85c1915145703ae7b9d802b (patch) | |
| tree | 9e27487a4a3827f84880fd0fefc8158bd662cc4a /src | |
| parent | a44881d892fb4f4a8ed93f8f392bab942fac7a41 (diff) | |
| download | rust-606a31f46a066ba0d85c1915145703ae7b9d802b.tar.gz rust-606a31f46a066ba0d85c1915145703ae7b9d802b.zip | |
Add a getter for the current state to `DataflowResultsCursor`
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_mir/dataflow/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librustc_mir/dataflow/mod.rs b/src/librustc_mir/dataflow/mod.rs index 7fe2a890a53..c9da51233d4 100644 --- a/src/librustc_mir/dataflow/mod.rs +++ b/src/librustc_mir/dataflow/mod.rs @@ -453,6 +453,10 @@ where { self.flow_state.each_gen_bit(f) } + + pub fn get(&self) -> &BitSet<BD::Idx> { + self.flow_state.as_dense() + } } pub fn state_for_location<'tcx, T: BitDenotation<'tcx>>(loc: Location, |
