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
|
@ -265,6 +265,7 @@ impl<'a, 'tcx> TerminatorCodegenHelper<'tcx> {
|
|||
};
|
||||
|
||||
if operands.iter().any(|x| matches!(x, InlineAsmOperandRef::Label { .. })) {
|
||||
assert!(unwind_target.is_none());
|
||||
let ret_llbb = if let Some(target) = destination {
|
||||
fx.llbb(target)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue