mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Introduce ThrowAddrInst
This commit is contained in:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user