swift
e70fbbc7 - [ConstraintSystem] correct the @preconcurrency adjustment of var references

Commit
3 years ago
[ConstraintSystem] correct the @preconcurrency adjustment of var references We intended to introduce AST conversions that strip concurrency attributes off of types associated with `@preconcurrency` decls. But for VarDecl references, we stripped it too early, leading to things like a MemberVarDecl that doesn't have `@Sendable` in its result type, but the VarDecl it refers to does have it. That caused crashes in SIL where types didn't match up. This patch fixes things by delaying the stripping until the right point. resolves rdar://98018067
Author
Committer
Parents
Loading