We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9405fb commit cb4dddaCopy full SHA for cb4ddda
lib/ClangImporter/ImportDecl.cpp
@@ -3505,6 +3505,13 @@ namespace {
3505
}
3506
3507
Decl *VisitCXXRecordDecl(const clang::CXXRecordDecl *decl) {
3508
+ // lldb can call this without enabling C++ interop. To avoid crashing in
3509
+ // Clang's Sema, fall back to importing this as a plain RecordDecl.
3510
+ // FIXME: Fix lldb to enable C++ interop when appropriate, then remove
3511
+ // this fallback.
3512
+ if (!Impl.SwiftContext.LangOpts.EnableCXXInterop)
3513
+ return VisitRecordDecl(decl);
3514
+
3515
auto &clangSema = Impl.getClangSema();
3516
// Make Clang define the implicit default constructor if the class needs
3517
// it. Make sure we only do this if the class has been fully defined and
0 commit comments