Skip to content

Commit f5e4eb9

Browse files
committed
Use Terminator::edges for backward analysis too.
1 parent 94c5ea3 commit f5e4eb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir_dataflow/src/impls/liveness.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ impl<'a, 'tcx> Analysis<'tcx> for MaybeTransitiveLiveLocals<'a> {
292292
location: Location,
293293
) -> TerminatorEdges<'mir, 'tcx> {
294294
TransferFunction(trans).visit_terminator(terminator, location);
295-
TerminatorEdges::None
295+
terminator.edges()
296296
}
297297

298298
fn apply_call_return_effect(

0 commit comments

Comments
 (0)