1
Fork 0

Address review comments

This commit is contained in:
Matthew Jasper 2020-05-08 20:00:32 +01:00 committed by Aaron Hill
parent 1e71862046
commit 8902ce5d84
No known key found for this signature in database
GPG key ID: B4087E510E98B164
2 changed files with 11 additions and 7 deletions

View file

@ -362,12 +362,16 @@ impl<'b, 'a, 'tcx> Gatherer<'b, 'a, 'tcx> {
fn gather_terminator(&mut self, term: &Terminator<'tcx>) {
match term.kind {
TerminatorKind::Goto { target: _ }
| TerminatorKind::FalseEdges { .. }
| TerminatorKind::FalseUnwind { .. }
// In some sense returning moves the return place into the current
// call's destination, however, since there are no statements after
// this that could possibly access the return place, this doesn't
// need recording.
| TerminatorKind::Return
| TerminatorKind::Resume
| TerminatorKind::Abort
| TerminatorKind::GeneratorDrop
| TerminatorKind::FalseEdge { .. }
| TerminatorKind::FalseUnwind { .. }
| TerminatorKind::Unreachable => {}
TerminatorKind::Assert { ref cond, .. } => {