Skip to content

Commit e5f3472

Browse files
committed
[APINotes] Fix another build error in LLDB
rdar://114382260
1 parent b411589 commit e5f3472

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)