From 3e9031e83e19b16b6450411249d812c66690dd76 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Tue, 27 Nov 2012 22:18:23 +0000 Subject: [PATCH] Properly detect the if unnamed bitfields are supported by clang if the major calng version is higher than 425. llvm-svn: 168734 --- lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp index 42f551da2f40..244b69d250a4 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;