1
Fork 0

Visit SourceInfo of all Terminators

This commit is contained in:
Kornel 2025-02-07 20:58:48 +00:00
parent 6573b6259b
commit 699567058f
No known key found for this signature in database

View file

@ -1254,6 +1254,8 @@ impl<'tcx> MutVisitor<'tcx> for Integrator<'_, 'tcx> {
// replaced down below anyways).
if !matches!(terminator.kind, TerminatorKind::Return) {
self.super_terminator(terminator, loc);
} else {
self.visit_source_info(&mut terminator.source_info);
}
match terminator.kind {