about summary refs log tree commit diff
path: root/src/inline_asm.rs
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2023-12-26 16:07:35 +0000
committerGary Guo <gary@garyguo.net>2024-02-24 18:50:09 +0000
commit8cec9989b2a8b39da211d819f1c05fab94886b34 (patch)
treef6e1579b0b28f000f2f6a7006553ee6b77e3f647 /src/inline_asm.rs
parent98dcd8505470b328c7177dbaa4fad68352692c2a (diff)
Implement asm goto in MIR and MIR lowering
Diffstat (limited to 'src/inline_asm.rs')
-rw-r--r--src/inline_asm.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/inline_asm.rs b/src/inline_asm.rs
index 7793b1b7092..171ee88a11c 100644
--- a/src/inline_asm.rs
+++ b/src/inline_asm.rs
@@ -129,6 +129,9 @@ pub(crate) fn codegen_inline_asm_terminator<'tcx>(
                 let instance = Instance::mono(fx.tcx, def_id).polymorphize(fx.tcx);
                 CInlineAsmOperand::Symbol { symbol: fx.tcx.symbol_name(instance).name.to_owned() }
             }
+            InlineAsmOperand::Label { .. } => {
+                span_bug!(span, "asm! label operands are not yet supported");
+            }
         })
         .collect::<Vec<_>>();