Rollup merge of #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 #62547 used this API and included this fix, but it has since switched to `DataflowResultsCursor` making this commit irrelevant.
This commit is contained in:
Mark Rousskov 2019-07-15 19:55:12 -04:00 committed by GitHub
commit 83ead58917
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -333,6 +333,8 @@ fn analyze_results(&mut self, flow_uninit: &mut Self::FlowState) {
}
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 };