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)
commit5fd0c9d032bda1a3a8ab134ec13e6ece1c023772
tree84d4912870b7da43296c1d67f621b7ed728ebf64
parent4f345f3c03e648145794e754aacaf1093f1ce3b6
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

llvm-svn: 201288
clang/lib/AST/RecordLayoutBuilder.cpp
clang/test/Sema/bitfield-layout.c