1
Fork 0

Rollup merge of #108154 - scottmcm:start-block-cleanup, r=compiler-errors

`BasicBlock::new(0)` -> `START_BLOCK` [no functional changes]
This commit is contained in:
Matthias Krüger 2023-02-17 12:39:07 +01:00 committed by GitHub
commit ae5473c969
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 12 deletions

View file

@ -898,7 +898,7 @@ impl<'a, 'tcx> Promoter<'a, 'tcx> {
assert_eq!(self.new_block(), START_BLOCK);
self.visit_rvalue(
&mut rvalue,
Location { block: BasicBlock::new(0), statement_index: usize::MAX },
Location { block: START_BLOCK, statement_index: usize::MAX },
);
let span = self.promoted.span;