]> granicus.if.org Git - clang/commit
Fixing a compiler assertion with zero-width bit-fields in packed structs.
authorYunzhong Gao <Yunzhong_Gao@playstation.sony.com>
Thu, 13 Feb 2014 02:45:10 +0000 (02:45 +0000)
committerYunzhong Gao <Yunzhong_Gao@playstation.sony.com>
Thu, 13 Feb 2014 02:45:10 +0000 (02:45 +0000)
commit584c6304cf0036928b494ea7916f9b41a5d3e3b6
tree098d692c9b4c429a17b127d46b33ba36b62fba26
parent6cadadf9bfc5221fdc2b8830a08d4d31c16fddcd
Fixing a compiler assertion with zero-width bit-fields in packed structs.
According to the GNU docs, zero-sized bitfields should not be affected by the
packed attribute.

Differential Revision: http://llvm-reviews.chandlerc.com/D2693

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201288 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/RecordLayoutBuilder.cpp
test/Sema/bitfield-layout.c