Treat InOut variables like other input variables

This commit is contained in:
Olivia Crain 2020-10-17 16:36:58 -05:00
parent cc0b718aaa
commit fd193f2d7f
1 changed files with 2 additions and 2 deletions

View File

@ -1174,7 +1174,7 @@ impl<'a, 'tcx> Liveness<'a, 'tcx> {
}
}
hir::InlineAsmOperand::InOut { expr, .. } => {
succ = self.write_place(expr, succ, ACC_READ | ACC_WRITE | ACC_USE);
succ = self.write_place(expr, succ, ACC_READ | ACC_WRITE);
}
hir::InlineAsmOperand::SplitInOut { out_expr, .. } => {
if let Some(expr) = out_expr {
@ -1199,7 +1199,7 @@ impl<'a, 'tcx> Liveness<'a, 'tcx> {
}
}
hir::InlineAsmOperand::InOut { expr, .. } => {
succ = self.propagate_through_place_components(expr, succ);
succ = self.propagate_through_expr(expr, succ);
}
hir::InlineAsmOperand::SplitInOut { in_expr, out_expr, .. } => {
if let Some(expr) = out_expr {