]> granicus.if.org Git - clang/commit
Before determining the effect the alignment of base struct will have in the aligment...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 9 Dec 2010 00:35:20 +0000 (00:35 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 9 Dec 2010 00:35:20 +0000 (00:35 +0000)
commit43ddd9f2027bdd9c36336a342e9c0dd2aa13f836
tree9ce37fef74fbdd65c46a0ccd3ae59ebfafb86256
parentda6fb69873079a0193ed8c9fa1d1b859d4f87b95
Before determining the effect the alignment of base struct will have in the aligment of the sub-struct,
take into account if the sub-struct is packed and its maximum field alignment.

Fixes rdar://8745206

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121335 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/RecordLayoutBuilder.cpp
test/SemaCXX/pragma-pack.cpp [new file with mode: 0644]