Skip to content

Commit 2ce227d

Browse files
Actually call visit_block_entry in DataflowResultsConsumer
Previously, this callback was never actually called.
1 parent 85a360e commit 2ce227d

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)