swift
43fb596b - SIL: Lower typed error as untyped `any Error` in untyped throwing abstraction contexts.

Commit
211 days ago
SIL: Lower typed error as untyped `any Error` in untyped throwing abstraction contexts. Other parts of SILGen were set up to deal with this situation, where for example a closure literal with a concrete error type is used in a type context that wants an untyped `throws` function, avoiding the thunk by lowering the closure literal directly as the context type with an untyped error. However, SILFunctionType lowering itself did not account for this situation, leading to a type mismatch in SILGen where the body would be emitted with an untyped error but the function would still be declared with a type error. Fix this oversight, addressing rdar://171121086.
Author
Parents
Loading