Skip to content

Commit

Permalink
Actually call visit_block_entry in DataflowResultsConsumer
Browse files Browse the repository at this point in the history
Previously, this callback was never actually called.
  • Loading branch information
ecstatic-morse committed Jul 14, 2019
1 parent 85a360e commit 2ce227d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc_mir/dataflow/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ pub(crate) trait DataflowResultsConsumer<'a, 'tcx: 'a> {
}

fn process_basic_block(&mut self, bb: BasicBlock, flow_state: &mut Self::FlowState) {
self.visit_block_entry(bb, flow_state);

let BasicBlockData { ref statements, ref terminator, is_cleanup: _ } =
self.body()[bb];
let mut location = Location { block: bb, statement_index: 0 };
Expand Down

0 comments on commit 2ce227d

Please sign in to comment.