aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2013-07-25 18:29:25 +0000
committerGreg Clayton <gclayton@apple.com>2013-07-25 18:29:25 +0000
commite5dadc19db7e2f2e5ed5edf34dc920446266fd00 (patch)
treee1994a4df366e9c9142376ac8d7e8702e28dc6ac
parent3bf526ac0f51dda6f63be3421cd7de68720dd656 (diff)
downloadlldb-e5dadc19db7e2f2e5ed5edf34dc920446266fd00.tar.gz
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
-rw-r--r--source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp b/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
index f5fdb1803..03c12e366 100644
--- a/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
+++ b/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
@@ -799,10 +799,12 @@ DWARFDebugInfoEntry::GetDIENamesAndRanges
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: