1
Fork 0

Remove unused TyCtxt from remove_dead_blocks

This context was only needed by code for processing coverage statements, which
has been removed.
This commit is contained in:
Zalathar 2023-09-07 21:57:24 +10:00
parent 6da319f635
commit 7d38f4a611
7 changed files with 9 additions and 9 deletions

View file

@ -244,7 +244,7 @@ impl<'tcx> MirPass<'tcx> for DestinationPropagation {
if round_count != 0 {
// Merging can introduce overlap between moved arguments and/or call destination in an
// unreachable code, which validator considers to be ill-formed.
remove_dead_blocks(tcx, body);
remove_dead_blocks(body);
}
trace!(round_count);