Reorder yield visitation order to match call
This commit is contained in:
parent
d4c6dfe6d6
commit
71c4f76153
2 changed files with 2 additions and 2 deletions
|
@ -519,12 +519,12 @@ macro_rules! make_mir_visitor {
|
|||
resume_arg,
|
||||
drop: _,
|
||||
} => {
|
||||
self.visit_operand(value, source_location);
|
||||
self.visit_place(
|
||||
resume_arg,
|
||||
PlaceContext::MutatingUse(MutatingUseContext::Store),
|
||||
source_location,
|
||||
);
|
||||
self.visit_operand(value, source_location);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -381,9 +381,9 @@ impl<'b, 'a, 'tcx> Gatherer<'b, 'a, 'tcx> {
|
|||
}
|
||||
|
||||
TerminatorKind::Yield { ref value, resume_arg: ref place, .. } => {
|
||||
self.gather_operand(value);
|
||||
self.create_move_path(place);
|
||||
self.gather_init(place.as_ref(), InitKind::Deep);
|
||||
self.gather_operand(value);
|
||||
}
|
||||
|
||||
TerminatorKind::Drop { ref location, target: _, unwind: _ } => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue