<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
This commit is contained in:
Greg Clayton 2012-11-27 22:18:23 +00:00
parent 0c00758065
commit 3e9031e83e
1 changed files with 2 additions and 1 deletions

View File

@ -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;