Skip to content

Commit 945c269

Browse files
authored
Merge pull request #7332 from apple/egorzhdan/lldb-second-fix-20230725
[APINotes] Fix another build error in LLDB
2 parents b411589 + e5f3472 commit 945c269

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lldb/source/Plugins/TypeSystem/Swift/TypeSystemSwiftTypeRef.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -869,9 +869,8 @@ TypeSystemSwiftTypeRef::GetSwiftName(const clang::Decl *clang_decl,
869869
// The order is significant since some of these decl kinds are also
870870
// TagDecls.
871871
if (llvm::isa<clang::TypedefNameDecl>(clang_decl))
872-
// FIXME: this should pass the correct context instead of nullopt.
873-
swift_name =
874-
ExtractSwiftName(reader->lookupTypedef(std::nullopt, default_name));
872+
// FIXME: this should pass the correct context.
873+
swift_name = ExtractSwiftName(reader->lookupTypedef(default_name));
875874
else if (llvm::isa<clang::EnumConstantDecl>(clang_decl))
876875
swift_name = ExtractSwiftName(reader->lookupEnumConstant(default_name));
877876
else if (llvm::isa<clang::ObjCInterfaceDecl>(clang_decl))

0 commit comments

Comments
 (0)