We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45b1079 commit 810c2d1Copy full SHA for 810c2d1
compiler/rustc_mir_dataflow/src/points.rs
@@ -30,8 +30,6 @@ impl DenseLocationMap {
30
v
31
})
32
.collect();
33
- debug!("DenseLocationMap: statements_before_block={:#?}", statements_before_block);
34
- debug!("DenseLocationMap: num_points={:#?}", num_points);
35
36
let mut basic_blocks = IndexVec::with_capacity(num_points);
37
for (bb, bb_data) in body.basic_blocks.iter_enumerated() {
@@ -55,7 +53,7 @@ impl DenseLocationMap {
55
53
PointIndex::new(start_index + statement_index)
56
54
}
57
58
- /// Converts a `Location` into a `PointIndex`. O(1).
+ /// Returns the `PointIndex` for the first statement in the given `BasicBlock`. O(1).
59
#[inline]
60
pub fn entry_point(&self, block: BasicBlock) -> PointIndex {
61
let start_index = self.statements_before_block[block];
0 commit comments