Skip to content

Commit 33e8c71

Browse files
martinboehmezoecarver
authored andcommitted
Update comment in VisitCXXRecordDecl().
1 parent cb4ddda commit 33e8c71

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3505,10 +3505,11 @@ namespace {
35053505
}
35063506

35073507
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.
35123513
if (!Impl.SwiftContext.LangOpts.EnableCXXInterop)
35133514
return VisitRecordDecl(decl);
35143515

0 commit comments

Comments
 (0)