Add assertions and clarify asm-goto with noreturn
This commit is contained in:
parent
84bc9e9e36
commit
626a5f5892
3 changed files with 9 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue