mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We use getCurrentCounter() in one spot where there isn't guaranteed to be an active region: the `else' part of an IfExpr in a TopLevelCodeDecl. Fix this issue by assigning a pseudo-counter to the `else' part when the region stack is empty. This patch also adds crash tests which cover other code paths which rely on getCurrentCounter() when handling TopLevelCodeDecls. Fixes SR-4453.
1.1 KiB
1.1 KiB