summaryrefslogtreecommitdiffstats
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
commitc69e55bd480467de7b6a4824f2cd8f27172a539f (patch)
treeb53dd444d60d3aad16b6428a95ef207639d0c4e0
parente4daf52a634c983dbe793088a78547883188bcf4 (diff)
downloadbcm5719-llvm-c69e55bd480467de7b6a4824f2cd8f27172a539f.tar.gz
bcm5719-llvm-c69e55bd480467de7b6a4824f2cd8f27172a539f.zip
Add explicit braces to quiet the "avoid dangling else" warning from clang.
llvm-svn: 187137
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
index f5fdb18032b..03c12e366f9 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
+++ b/lldb/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:
OpenPOWER on IntegriCloud