mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Correctly determining the DeclContext needed for an ExplicitCaughtTypeRequest is tricky for a number of callers, and mistakes here can easily lead to redundant computation of the caught type, redundant diagnostics, etc. Instead, put a `DeclContext` into `DoCatchStmt`, because that's the only catch node that needs a `DeclContext` but does not have one.
2.1 KiB
2.1 KiB