Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[ASTMangler] Mangle nested imported error structs correctly #24804
Error structs synthesized by ClangImporter can be renamed using
This PR corrects the compiler bugs so that it generates the mangling the runtime expects. This is theoretically ABI-breaking, but as far as I can determine nobody has shipped the incorrectly mangled names, presumably because they crash when you try to use them.
(This PR does not affect the mangling of error types written in Swift, only ones imported from Clang.)