mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SILBoxTypes have their own generic signature and substitution map. This means that every time we query isEscapable or mayEscape, we need to extract the type of the box's field and perform type substitution so that the AST query only sees types from the function's generic environment. Fixes rdar://124179106 (Assertion failed in SIL: (!type->hasTypeParameter() && "caller forgot to mapTypeIntoContext!"))
15 KiB
15 KiB