[Lldb-commits] [lldb] r187137 - Add explicit braces to quiet the "avoid dangling else" warning from clang.

Greg Clayton gclayton at apple.com
Thu Jul 25 11:29:25 PDT 2013


Author: gclayton
Date: Thu Jul 25 13:29:25 2013
New Revision: 187137

URL: http://llvm.org/viewvc/llvm-project?rev=187137&view=rev
Log:
Add explicit braces to quiet the "avoid dangling else" warning from clang.


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

Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp?rev=187137&r1=187136&r2=187137&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp Thu Jul 25 13:29:25 2013
@@ -799,10 +799,12 @@ DWARFDebugInfoEntry::GetDIENamesAndRange
                 case DW_AT_high_pc:
                     hi_pc = form_value.Unsigned();
                     if (form_value.Form() != DW_FORM_addr)
+                    {
                         if (lo_pc == LLDB_INVALID_ADDRESS)
                             do_offset = hi_pc != LLDB_INVALID_ADDRESS;
                         else
                             hi_pc += lo_pc; // DWARF 4 introduces <offset-from-lo-pc> to save on relocations
+                    }
                     break;
 
                 case DW_AT_ranges:





More information about the lldb-commits mailing list