File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -3505,10 +3505,11 @@ namespace {
3505
3505
}
3506
3506
3507
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.
3508
+ // This can be called from lldb without C++ interop being enabled: There
3509
+ // may be C++ declarations in imported modules, but the interface for
3510
+ // those modules may be a pure C or Objective-C interface.
3511
+ // To avoid crashing in Clang's Sema, fall back to importing this as a
3512
+ // plain RecordDecl.
3512
3513
if (!Impl.SwiftContext .LangOpts .EnableCXXInterop )
3513
3514
return VisitRecordDecl (decl);
3514
3515
You can’t perform that action at this time.
0 commit comments