mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Previously we would mangle a single ErrorType as the type for the element, but that would fail to demangle since we expect a function type. Use the same logic as AbstractFunctionDecl, mangling a function type of ErrorType. While here, also handle SubscriptDecls and check for error types rather than `isInvalid()`. rdar://129065620