[Lldb-commits] [lldb] r350577 - Simplify code.

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 7 15:08:16 PST 2019


Author: adrian
Date: Mon Jan  7 15:08:16 2019
New Revision: 350577

URL: http://llvm.org/viewvc/llvm-project?rev=350577&view=rev
Log:
Simplify code.

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

Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp?rev=350577&r1=350576&r2=350577&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp Mon Jan  7 15:08:16 2019
@@ -166,8 +166,7 @@ TypeSP DWARFASTParserClang::ParseTypeFro
     }
   }
 
-  const size_t num_dwo_types = dwo_types.GetSize();
-  if (num_dwo_types != 1)
+  if (dwo_types.GetSize() != 1)
     return TypeSP();
 
   // We found a real definition for this type in the Clang module, so lets use




More information about the lldb-commits mailing list