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

@@ -2484,6 +2484,11 @@ public:
new (getModule()) ThrowInst(getSILDebugLocation(Loc), errorValue));
}
ThrowAddrInst *createThrowAddr(SILLocation Loc) {
return insertTerminator(
new (getModule()) ThrowAddrInst(getSILDebugLocation(Loc)));
}
UnwindInst *createUnwind(SILLocation loc) {
return insertTerminator(
new (getModule()) UnwindInst(getSILDebugLocation(loc)));