[Lldb-commits] [lldb] d62026e - [lldb][NFC] Don't calculate member indices in DWARFASTParserClang::ParseChildMembers

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Mon Dec 2 05:44:03 PST 2019


Author: Raphael Isemann
Date: 2019-12-02T14:43:40+01:00
New Revision: d62026e2dde1d27c7d1c702f11b0464e1d470d4f

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

LOG: [lldb][NFC] Don't calculate member indices in DWARFASTParserClang::ParseChildMembers

We keep counting members and then don't do anything with the computed result.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
index 43030c62cb40..ca1db03b02fa 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
@@ -2465,7 +2465,6 @@ bool DWARFASTParserClang::ParseChildMembers(
   const uint64_t parent_bit_size =
       parent_byte_size == UINT64_MAX ? UINT64_MAX : parent_byte_size * 8;
 
-  uint32_t member_idx = 0;
   BitfieldInfo last_field_info;
 
   ModuleSP module_sp = parent_die.GetDWARF()->GetObjectFile()->GetModule();
@@ -2935,7 +2934,6 @@ bool DWARFASTParserClang::ParseChildMembers(
           }
         }
       }
-      ++member_idx;
     } break;
 
     case DW_TAG_subprogram:


        


More information about the lldb-commits mailing list