]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir/src/transform/dest_prop.rs
Use AnonConst for asm! constants
[rust.git] / compiler / rustc_mir / src / transform / dest_prop.rs
index 6656deac967b696edc74d2b45bae2e8db5868f06..29df86ca6cdb753304a4f356898219bdcdd88b43 100644 (file)
@@ -720,9 +720,6 @@ fn record_terminator_conflicts(&mut self, term: &Terminator<'_>) {
                                 }
                             }
                         }
-                        InlineAsmOperand::Const { value } => {
-                            assert!(value.place().is_none());
-                        }
                         InlineAsmOperand::InOut {
                             reg: _,
                             late: _,
@@ -731,6 +728,7 @@ fn record_terminator_conflicts(&mut self, term: &Terminator<'_>) {
                         }
                         | InlineAsmOperand::In { reg: _, value: _ }
                         | InlineAsmOperand::Out { reg: _, late: _, place: None }
+                        | InlineAsmOperand::Const { value: _ }
                         | InlineAsmOperand::SymFn { value: _ }
                         | InlineAsmOperand::SymStatic { def_id: _ } => {}
                     }