[Lldb-commits] [lldb] b448eda - [lldb] Fix typo in AppleDWARFIndex

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 10 19:23:24 PDT 2020


Author: Jonas Devlieghere
Date: 2020-08-10T19:22:52-07:00
New Revision: b448eda4066ff5dee2517018e386893ab629f9e8

URL: https://github.com/llvm/llvm-project/commit/b448eda4066ff5dee2517018e386893ab629f9e8
DIFF: https://github.com/llvm/llvm-project/commit/b448eda4066ff5dee2517018e386893ab629f9e8.diff

LOG: [lldb] Fix typo in AppleDWARFIndex

apple_names_table_up appeared twice in the binary expression, while the
second instance was meant to check apple_namespaces_table_up.

Fixes PR47101

Added: 
    

Modified: 
    lldb/source/Plugins/SymbolFile/DWARF/AppleDWARFIndex.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/SymbolFile/DWARF/AppleDWARFIndex.cpp b/lldb/source/Plugins/SymbolFile/DWARF/AppleDWARFIndex.cpp
index 33ab11a3ca40..60b6b726f6c0 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/AppleDWARFIndex.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/AppleDWARFIndex.cpp
@@ -42,8 +42,8 @@ std::unique_ptr<AppleDWARFIndex> AppleDWARFIndex::Create(
   if (!apple_objc_table_up->IsValid())
     apple_objc_table_up.reset();
 
-  if (apple_names_table_up || apple_names_table_up || apple_types_table_up ||
-      apple_objc_table_up)
+  if (apple_names_table_up || apple_namespaces_table_up ||
+      apple_types_table_up || apple_objc_table_up)
     return std::make_unique<AppleDWARFIndex>(
         module, std::move(apple_names_table_up),
         std::move(apple_namespaces_table_up), std::move(apple_types_table_up),


        


More information about the lldb-commits mailing list