Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SILGen: Relax assertion that incorrectly tripped on lowered opaque ca…
…pture types. When lowering the SILConstantInfo for a closure implementation type with captures, we are more conservative about substituting opaque types in the capture, since the underlying types may only be available in the local context. This means the SILConstantInfo type may not in fact be exactly what you get from `SILFunction::getFunctionTypeInContext` referencing the implementation function from its originating context, since those opaque types will be substituted in the local context. Fixes SR-13480 | rdar://problem/68159831.
- Loading branch information