mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Typed throws] Handle throw_addr in the same places as throw.
This commit is contained in:
@@ -275,7 +275,7 @@ bool swift::canDuplicateLoopInstruction(SILLoop *L, SILInstruction *I) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (isa<ThrowInst>(I))
|
||||
if (isa<ThrowInst>(I) || isa<ThrowAddrInst>(I))
|
||||
return false;
|
||||
|
||||
// The entire access must be within the loop.
|
||||
|
||||
Reference in New Issue
Block a user