Skip to content

Commit 8a535e9

Browse files
committed
[LLDB][DWARF] reviews
1 parent c744c51 commit 8a535e9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,9 +1701,10 @@ void DWARFASTParserClang::GetUniqueTypeNameAndDeclaration(
17011701
// only one thing can exist at a given decl context. We ignore the
17021702
// file and line that things are declared on.
17031703
// FIXME: Rust pretends to be C++ for now, so use C++ name qualification rules
1704-
auto isCPlusPlusOrSimilar = Language::LanguageIsCPlusPlus(language) ||
1705-
language == lldb::eLanguageTypeRust;
1706-
if (!die.IsValid() || !isCPlusPlusOrSimilar || unique_typename.IsEmpty())
1704+
if (!Language::LanguageIsCPlusPlus(language) &&
1705+
language != lldb::eLanguageTypeRust)
1706+
return;
1707+
if (!die.IsValid() || unique_typename.IsEmpty())
17071708
return;
17081709
decl_declaration.Clear();
17091710
std::string qualified_name;

0 commit comments

Comments
 (0)