Add assertions and clarify asm-goto with noreturn

This commit is contained in:
Gary Guo 2024-02-24 17:12:25 +00:00
parent 84bc9e9e36
commit 626a5f5892
3 changed files with 9 additions and 1 deletions

View file

@ -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)