mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
- In Sema, don't traverse nested declarations while deducing the opaque return type. This would cause returns inside nested functions to clobber the return type of the outer function. - In IRGen, walk the list of opaque return types we keep in the SourceFile already for type reconstruction, instead of trying to visit them ad-hoc as part of walking the AST, since IRGen doesn't normally walk the bodies of function decls directly. Fixes rdar://problem/50459091
152 KiB
152 KiB