Commit Graph

3 Commits

Author SHA1 Message Date
Slava Pestov
3a92d2fc53 AST: Remove legacy GSB-based GenericSignature query implementation 2022-01-12 12:33:34 -05:00
Slava Pestov
cda25b7eeb IRGen: Mangle DWARF types with the right generic signature
The symptom here was a crash in getConformanceAccessPath(), but the root
cause was that the ASTMangler used an incorrect generic signature when
looking up the conformance path for a type parameter.

The mangler requires a generic signature to be set to properly mangle types
containing retroactive conformances. However, DebugInfo just used the
IRGenModule's current signature, which wasn't always the same as the
signature describing the archetypes found inside the SILFunction.

Fixes rdar://problem/81683650 / https://bugs.swift.org/browse/SR-15046.
2021-08-24 21:48:19 -04:00
Suyash Srijan
9e89d56c57 [ASTMangler] Do not crash when mangling a retroactive conformance 2019-10-09 18:14:53 +01:00