[Lldb-commits] [lldb] r168734 - /lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp

Greg Clayton gclayton at apple.com
Tue Nov 27 14:18:23 PST 2012


Author: gclayton
Date: Tue Nov 27 16:18:23 2012
New Revision: 168734

URL: http://llvm.org/viewvc/llvm-project?rev=168734&view=rev
Log:
<rdar://problem/12636970>

Properly detect the if unnamed bitfields are supported by clang if the major calng version is higher than 425.


Modified:
    lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp

Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp?rev=168734&r1=168733&r2=168734&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp Tue Nov 27 16:18:23 2012
@@ -890,7 +890,8 @@
 {
     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;





More information about the lldb-commits mailing list