mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 23:12:02 +00:00
Treat InOut variables like other input variables
This commit is contained in:
parent
cc0b718aaa
commit
fd193f2d7f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user