Skip to content

Commit 4eeb7e3

Browse files
Merge pull request #206 from adrian-prantl/56582727-master
SwiftDWARFImporterDelegate: Add an early exit for mangled Swift names.
2 parents d6bbf63 + 0cf3cc9 commit 4eeb7e3

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
@@ -3285,6 +3285,10 @@ class SwiftDWARFImporterDelegate : public swift::DWARFImporterDelegate {
32853285
void lookupValue(StringRef name, llvm::Optional<swift::ClangTypeKind> kind,
32863286
StringRef inModule,
32873287
llvm::SmallVectorImpl<clang::Decl *> &results) override {
3288+
// We will not find any Swift types in the Clang compile units.
3289+
if (SwiftLanguageRuntime::IsSwiftMangledName(name.str().c_str()))
3290+
return;
3291+
32883292
auto clang_importer = m_swift_ast_ctx.GetClangImporter();
32893293
if (!clang_importer)
32903294
return;

0 commit comments

Comments
 (0)