1
Fork 0

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

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