Skip to content

Commit

Permalink
fixup: on_block_entry
Browse files Browse the repository at this point in the history
  • Loading branch information
ecstatic-morse committed Jan 20, 2020
1 parent 171eec5 commit b1081c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustc_mir/transform/elaborate_drops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ fn find_dead_unwinds<'tcx>(
};

let mut init_data = InitializationData {
live: flow_inits.on_block_entry(bb).clone(),
live: flow_inits.entry_set_for_block(bb).clone(),
dead: BitSet::new_empty(env.move_data.move_paths.len()),
};
debug!("find_dead_unwinds @ {:?}: {:?}; init_data={:?}", bb, bb_data, init_data.live);
Expand Down Expand Up @@ -287,8 +287,8 @@ impl<'b, 'tcx> ElaborateDropsCtxt<'b, 'tcx> {

fn initialization_data_at(&self, loc: Location) -> InitializationData {
let mut data = InitializationData {
live: self.flow_inits.on_block_entry(loc.block).to_owned(),
dead: self.flow_uninits.on_block_entry(loc.block).to_owned(),
live: self.flow_inits.entry_set_for_block(loc.block).to_owned(),
dead: self.flow_uninits.entry_set_for_block(loc.block).to_owned(),
};
for stmt in 0..loc.statement_index {
data.apply_location(
Expand Down

0 comments on commit b1081c0

Please sign in to comment.