Actually call visit_block_entry in DataflowResultsConsumer

Previously, this callback was never actually called.
This commit is contained in:
Dylan MacKenzie 2019-07-09 14:28:02 -07:00
parent 85a360e0ea
commit 2ce227dcc6

View File

@ -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 };