From c5e0c58875c668f00606fdda5cfdb91f0039e94f Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Mon, 7 Jan 2019 23:08:16 +0000 Subject: [PATCH] Simplify code. llvm-svn: 350577 --- lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp index 796c9ea9ca84..045be68cb342 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp @@ -166,8 +166,7 @@ TypeSP DWARFASTParserClang::ParseTypeFromDWO(const DWARFDIE &die, Log *log) { } } - 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