Skip to content

Commit 83ead58

Browse files
Rollup merge of rust-lang#62680 - ecstatic-morse:fix-dataflow-results-consumer, r=matthewjasper
Actually call `visit_block_entry` in `DataflowResultsConsumer` This fixes a trivial bug in `DataflowResultsConsumer`: `visit_block_entry` is never called when visiting dataflow results. A previous version of rust-lang#62547 used this API and included this fix, but it has since switched to `DataflowResultsCursor` making this commit irrelevant.
2 parents 879c610 + 2ce227d commit 83ead58

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

src/librustc_mir/dataflow/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,8 @@ pub(crate) trait DataflowResultsConsumer<'a, 'tcx: 'a> {
333333
}
334334

335335
fn process_basic_block(&mut self, bb: BasicBlock, flow_state: &mut Self::FlowState) {
336+
self.visit_block_entry(bb, flow_state);
337+
336338
let BasicBlockData { ref statements, ref terminator, is_cleanup: _ } =
337339
self.body()[bb];
338340
let mut location = Location { block: bb, statement_index: 0 };

0 commit comments

Comments
 (0)