commit | e5dadc19db7e2f2e5ed5edf34dc920446266fd00 | [log] [tgz] |
---|---|---|
author | Greg Clayton <gclayton@apple.com> | Thu Jul 25 18:29:25 2013 +0000 |
committer | Greg Clayton <gclayton@apple.com> | Thu Jul 25 18:29:25 2013 +0000 |
tree | e1994a4df366e9c9142376ac8d7e8702e28dc6ac | |
parent | 3bf526ac0f51dda6f63be3421cd7de68720dd656 [diff] |
Add explicit braces to quiet the "avoid dangling else" warning from clang. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@187137 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp b/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp index f5fdb18..03c12e3 100644 --- a/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp +++ b/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
@@ -799,10 +799,12 @@ 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: