summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-11-27 22:18:23 +0000
committerGreg Clayton <gclayton@apple.com>2012-11-27 22:18:23 +0000
commit3e9031e83e19b16b6450411249d812c66690dd76 (patch)
tree1cd068e3bb3142bff8fe204ce4709baedea56317 /lldb/source/Plugins/SymbolFile
parent0c00758065a68b527911de2d701ab964429d87a8 (diff)
downloadbcm5719-llvm-3e9031e83e19b16b6450411249d812c66690dd76.tar.gz
bcm5719-llvm-3e9031e83e19b16b6450411249d812c66690dd76.zip
<rdar://problem/12636970>
Properly detect the if unnamed bitfields are supported by clang if the major calng version is higher than 425. llvm-svn: 168734
Diffstat (limited to 'lldb/source/Plugins/SymbolFile')
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp
index 42f551da2f4..244b69d250a 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp
@@ -890,7 +890,8 @@ DWARFCompileUnit::Supports_unnamed_objc_bitfields ()
{
if (GetProducer() == eProducerClang)
{
- if (GetProducerVersionMajor() >= 425 && GetProducerVersionUpdate() >= 13)
+ const uint32_t major_version = GetProducerVersionMajor();
+ if (major_version > 425 || (major_version == 425 && GetProducerVersionUpdate() >= 13))
return true;
else
return false;
OpenPOWER on IntegriCloud