about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2024-02-24 17:12:25 +0000
committerGary Guo <gary@garyguo.net>2024-02-24 19:49:16 +0000
commit626a5f589208d544537f411724f35e6b841790e4 (patch)
tree5a7a54d38ee0fe4f0c21ee5b3768e9d9d6bd848f /compiler/rustc_codegen_llvm/src
parent84bc9e9e369ba23a244d9a6b8c047e6f1e0d6e7a (diff)
downloadrust-626a5f589208d544537f411724f35e6b841790e4.tar.gz
rust-626a5f589208d544537f411724f35e6b841790e4.zip
Add assertions and clarify asm-goto with noreturn
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/asm.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/asm.rs b/compiler/rustc_codegen_llvm/src/asm.rs
index f5d0b3c4657..74539d4d495 100644
--- a/compiler/rustc_codegen_llvm/src/asm.rs
+++ b/compiler/rustc_codegen_llvm/src/asm.rs
@@ -465,6 +465,7 @@ pub(crate) fn inline_asm_call<'ll>(
             );
 
             let call = if !labels.is_empty() {
+                assert!(catch_funclet.is_none());
                 bx.callbr(fty, None, None, v, inputs, dest.unwrap(), labels, None)
             } else if let Some((catch, funclet)) = catch_funclet {
                 bx.invoke(fty, None, None, v, inputs, dest.unwrap(), catch, funclet)