From 6a41dae468b828f949d1cf3752fc211dbd773661 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Fri, 18 Mar 2016 20:36:30 +0000 Subject: [PATCH] Fixed an case fall through that wasn't meant to happen. Caught by clang's unannotated case fall through warning. llvm-svn: 263826 --- .../Plugins/SymbolFile/DWARF/DWARFASTParserJava.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.cpp index 9be2a9e..a126549 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.cpp @@ -435,15 +435,16 @@ DWARFASTParserJava::CompleteTypeFromDWARF(const DWARFDIE &die, lldb_private::Typ switch (die.Tag()) { case DW_TAG_class_type: - { - if (die.GetAttributeValueAsUnsigned(DW_AT_declaration, 0) == 0) { - if (die.HasChildren()) - ParseChildMembers(die, java_type); - m_ast.CompleteObjectType(java_type); - return java_type.IsValid(); + if (die.GetAttributeValueAsUnsigned(DW_AT_declaration, 0) == 0) + { + if (die.HasChildren()) + ParseChildMembers(die, java_type); + m_ast.CompleteObjectType(java_type); + return java_type.IsValid(); + } } - } + break; default: assert(false && "Not a forward java type declaration!"); break; -- 2.7.4