about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2023-12-25 20:53:01 +0000
committerGary Guo <gary@garyguo.net>2024-02-24 18:49:39 +0000
commit93fa8579c6430d54525e1905eafff4dbcf9b31b0 (patch)
tree9067a6612b4f7d05213d708c49e6a64390be914d /compiler/rustc_codegen_ssa/src
parent8f359beca4e58bc3ae795a666301a8f47023044c (diff)
downloadrust-93fa8579c6430d54525e1905eafff4dbcf9b31b0.tar.gz
rust-93fa8579c6430d54525e1905eafff4dbcf9b31b0.zip
Add asm label support to AST and HIR
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/mono_item.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mono_item.rs b/compiler/rustc_codegen_ssa/src/mono_item.rs
index 295e2769109..1a4795c0213 100644
--- a/compiler/rustc_codegen_ssa/src/mono_item.rs
+++ b/compiler/rustc_codegen_ssa/src/mono_item.rs
@@ -76,7 +76,8 @@ impl<'a, 'tcx: 'a> MonoItemExt<'a, 'tcx> for MonoItem<'tcx> {
                             hir::InlineAsmOperand::In { .. }
                             | hir::InlineAsmOperand::Out { .. }
                             | hir::InlineAsmOperand::InOut { .. }
-                            | hir::InlineAsmOperand::SplitInOut { .. } => {
+                            | hir::InlineAsmOperand::SplitInOut { .. }
+                            | hir::InlineAsmOperand::Label { .. } => {
                                 span_bug!(*op_sp, "invalid operand type for global_asm!")
                             }
                         })