swift
0dbccc6b - AST: Fix debug info mangling of opaque result types with @_originallyDefinedIn

Commit
3 years ago
AST: Fix debug info mangling of opaque result types with @_originallyDefinedIn If a function's parameter or return types involve nominal types that have been moved across modules using @_originallyDefinedIn, we must take care to always mangle the opaque result type's name using the original module names and not the current module names. This was a problem with DWARF mangling, which normally disables @_originallyDefinedIn for other purposes. Make sure to always temporarily re-enable it when mangling an opaque result type. Fixes rdar://problem/93822207.
Author
Committer
Parents
Loading