diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-08-16 18:21:06 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-08-16 19:40:46 +0000 |
| commit | f5e4eb91b7626e3a3d34c116c18a85e1bdceef65 (patch) | |
| tree | e5e31ac0928a9b3eae8bc3a256361882fbd31359 | |
| parent | 94c5ea350f3fe5fcb8db3e670468bcf92b750046 (diff) | |
| download | rust-f5e4eb91b7626e3a3d34c116c18a85e1bdceef65.tar.gz rust-f5e4eb91b7626e3a3d34c116c18a85e1bdceef65.zip | |
Use Terminator::edges for backward analysis too.
| -rw-r--r-- | compiler/rustc_mir_dataflow/src/impls/liveness.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_dataflow/src/impls/liveness.rs b/compiler/rustc_mir_dataflow/src/impls/liveness.rs index 063a480e4b5..5aa73c7a906 100644 --- a/compiler/rustc_mir_dataflow/src/impls/liveness.rs +++ b/compiler/rustc_mir_dataflow/src/impls/liveness.rs @@ -292,7 +292,7 @@ impl<'a, 'tcx> Analysis<'tcx> for MaybeTransitiveLiveLocals<'a> { location: Location, ) -> TerminatorEdges<'mir, 'tcx> { TransferFunction(trans).visit_terminator(terminator, location); - TerminatorEdges::None + terminator.edges() } fn apply_call_return_effect( |
