Refactor call terminator to always hold a destination place
This commit is contained in:
parent
222c5724ec
commit
09b0936db2
67 changed files with 422 additions and 412 deletions
|
@ -124,6 +124,7 @@ impl<'cx, 'tcx> Visitor<'tcx> for InvalidationGenerator<'cx, 'tcx> {
|
|||
ref func,
|
||||
ref args,
|
||||
destination,
|
||||
target: _,
|
||||
cleanup: _,
|
||||
from_hir_call: _,
|
||||
fn_span: _,
|
||||
|
@ -132,9 +133,7 @@ impl<'cx, 'tcx> Visitor<'tcx> for InvalidationGenerator<'cx, 'tcx> {
|
|||
for arg in args {
|
||||
self.consume_operand(location, arg);
|
||||
}
|
||||
if let Some((dest, _ /*bb*/)) = destination {
|
||||
self.mutate_place(location, *dest, Deep);
|
||||
}
|
||||
self.mutate_place(location, *destination, Deep);
|
||||
}
|
||||
TerminatorKind::Assert { ref cond, expected: _, ref msg, target: _, cleanup: _ } => {
|
||||
self.consume_operand(location, cond);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue