SIL: Introduce ThrowAddrInst

This commit is contained in:
Slava Pestov
2023-10-30 22:53:34 -04:00
parent a8d43c7fcb
commit 05ccd9734c
29 changed files with 165 additions and 31 deletions

View File

@@ -1699,6 +1699,7 @@ bool TermInst::isFunctionExiting() const {
return false;
case TermKind::ReturnInst:
case TermKind::ThrowInst:
case TermKind::ThrowAddrInst:
case TermKind::UnwindInst:
return true;
}
@@ -1719,6 +1720,7 @@ bool TermInst::isProgramTerminating() const {
case TermKind::CheckedCastAddrBranchInst:
case TermKind::ReturnInst:
case TermKind::ThrowInst:
case TermKind::ThrowAddrInst:
case TermKind::UnwindInst:
case TermKind::TryApplyInst:
case TermKind::YieldInst:
@@ -1745,6 +1747,7 @@ const Operand *TermInst::forwardedOperand() const {
case TermKind::UnreachableInst:
case TermKind::ReturnInst:
case TermKind::ThrowInst:
case TermKind::ThrowAddrInst:
case TermKind::YieldInst:
case TermKind::TryApplyInst:
case TermKind::CondBranchInst: