1
Fork 0

Mark inout asm! operands as used in liveness pass

This commit is contained in:
Olivia Crain 2020-10-15 08:40:40 -05:00
parent ffeeb20398
commit cc0b718aaa
2 changed files with 37 additions and 1 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);
succ = self.write_place(expr, succ, ACC_READ | ACC_WRITE | ACC_USE);
}
hir::InlineAsmOperand::SplitInOut { out_expr, .. } => {
if let Some(expr) = out_expr {