Skip to content

Commit 0cf3cc9

Browse files
committed
SwiftDWARFImporterDelegate: Add an early exit for mangled Swift names.
rdar://problem/56582727
1 parent c1009be commit 0cf3cc9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lldb/source/Symbol/SwiftASTContext.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3231,6 +3231,10 @@ class SwiftDWARFImporterDelegate : public swift::DWARFImporterDelegate {
32313231
void lookupValue(StringRef name, llvm::Optional<swift::ClangTypeKind> kind,
32323232
StringRef inModule,
32333233
llvm::SmallVectorImpl<clang::Decl *> &results) override {
3234+
// We will not find any Swift types in the Clang compile units.
3235+
if (SwiftLanguageRuntime::IsSwiftMangledName(name.str().c_str()))
3236+
return;
3237+
32343238
auto clang_importer = m_swift_ast_ctx.GetClangImporter();
32353239
if (!clang_importer)
32363240
return;

0 commit comments

Comments
 (0)