mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Typed throws] Handle throw_addr in the same places as throw.
This commit is contained in:
@@ -1403,7 +1403,7 @@ public:
|
||||
return std::find_if(begin(), end(),
|
||||
[](const SILBasicBlock &BB) -> bool {
|
||||
const TermInst *TI = BB.getTerminator();
|
||||
return isa<ThrowInst>(TI);
|
||||
return isa<ThrowInst>(TI) || isa<ThrowAddrInst>(TI);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1413,7 +1413,7 @@ public:
|
||||
return std::find_if(begin(), end(),
|
||||
[](const SILBasicBlock &BB) -> bool {
|
||||
const TermInst *TI = BB.getTerminator();
|
||||
return isa<ThrowInst>(TI);
|
||||
return isa<ThrowInst>(TI) || isa<ThrowAddrInst>(TI);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user