[Typed throws] Handle throw_addr in the same places as throw.

This commit is contained in:
Doug Gregor
2023-11-03 18:32:23 -07:00
parent 844b46fae5
commit 53c8e84a1f
7 changed files with 12 additions and 9 deletions

View File

@@ -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.