]> granicus.if.org Git - clang/commit
[CodeGen] Ignore unnamed bitfields before handling vector fields
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 15 Aug 2016 07:20:40 +0000 (07:20 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 15 Aug 2016 07:20:40 +0000 (07:20 +0000)
commit63dcb570a11e231061654541e4b53f0cf25b8e8d
treea626aa1a85f479a1c3209490c2bae2632bf436d2
parentf9187a1ffdf709ce72b750295d6b4177c53255e6
[CodeGen] Ignore unnamed bitfields before handling vector fields

We processed unnamed bitfields after our logic for non-vector field
elements in records larger than 128 bits.  The vector logic would
determine that the bit-field disqualifies the record from occupying a
register despite the unnamed bit-field not participating in the record
size nor its alignment.

N.B. This behavior matches GCC and ICC.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@278656 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TargetInfo.cpp
test/CodeGen/x86_64-arguments.c