File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,9 @@ impl<'tcx> Body<'tcx> {
206
206
& mut self . basic_blocks
207
207
}
208
208
209
- pub fn basic_block_terminator_opt_mut ( & mut self , bb : BasicBlock ) -> & mut Option < Terminator < ' tcx > > {
209
+ pub fn basic_block_terminator_opt_mut (
210
+ & mut self , bb : BasicBlock
211
+ ) -> & mut Option < Terminator < ' tcx > > {
210
212
// FIXME we should look into improving the cache invalidation
211
213
self . predecessors_cache = None ;
212
214
& mut self . basic_blocks [ bb] . terminator
@@ -256,7 +258,7 @@ impl<'tcx> Body<'tcx> {
256
258
257
259
#[ inline]
258
260
pub fn predecessors_for ( & self , bb : BasicBlock ) -> & [ BasicBlock ] {
259
- // TODO (nashenas88) could this be predecessors sometimes too?
261
+ // FIXME (nashenas88) could this be predecessors sometimes too?
260
262
& self . unwrap_predecessors ( ) [ bb]
261
263
}
262
264
Original file line number Diff line number Diff line change @@ -276,8 +276,8 @@ pub fn remove_dead_blocks(body: &mut Body<'_>) {
276
276
for alive_index in seen. iter ( ) {
277
277
replacements[ alive_index] = BasicBlock :: new ( used_blocks) ;
278
278
if alive_index != used_blocks {
279
- // Swap the next alive block data with the current available slot. Since alive_index is
280
- // non-decreasing this is a valid operation.
279
+ // Swap the next alive block data with the current available slot. Since
280
+ // alive_index is non-decreasing this is a valid operation.
281
281
basic_blocks. raw . swap ( alive_index, used_blocks) ;
282
282
}
283
283
used_blocks += 1 ;
You can’t perform that action at this time.
0 commit comments