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,
|
resume_arg,
|
||||||
drop: _,
|
drop: _,
|
||||||
} => {
|
} => {
|
||||||
|
self.visit_operand(value, source_location);
|
||||||
self.visit_place(
|
self.visit_place(
|
||||||
resume_arg,
|
resume_arg,
|
||||||
PlaceContext::MutatingUse(MutatingUseContext::Store),
|
PlaceContext::MutatingUse(MutatingUseContext::Store),
|
||||||
source_location,
|
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, .. } => {
|
TerminatorKind::Yield { ref value, resume_arg: ref place, .. } => {
|
||||||
|
self.gather_operand(value);
|
||||||
self.create_move_path(place);
|
self.create_move_path(place);
|
||||||
self.gather_init(place.as_ref(), InitKind::Deep);
|
self.gather_init(place.as_ref(), InitKind::Deep);
|
||||||
self.gather_operand(value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TerminatorKind::Drop { ref location, target: _, unwind: _ } => {
|
TerminatorKind::Drop { ref location, target: _, unwind: _ } => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue