swift
dd2f4650 - [cxx-interop] Do not get private discriminator for private Clang types (#80485)

Commit
108 days ago
[cxx-interop] Do not get private discriminator for private Clang types (#80485) When generating debug symbols for private Clang types (which we started importing recently), the compiler crashes due to an assertion failure from ClangModuleUnit::getDiscriminatorForPrivateDecl(), which is called by getFilePrivateScope(). This patch fixes the issue crash by not calling getFilePrivateScope() for Clang types. A discriminator is usually needed to disambiguate private Swift types declared in different files, but Clang types follow different scoping conventions that make this discriminator unnecessary. rdar://148481025
Author
Parents
  • lib/IRGen
    • File
      IRGenDebugInfo.cpp
  • test/Interop/Cxx/class/access
    • File
      private-fileid-irgen.swift
Loading