]> granicus.if.org Git - clang/commit
[ms-abi] Small Change to pack+alignment interaction.
authorWarren Hunt <whunt@google.com>
Tue, 14 Jan 2014 00:54:36 +0000 (00:54 +0000)
committerWarren Hunt <whunt@google.com>
Tue, 14 Jan 2014 00:54:36 +0000 (00:54 +0000)
commitaf1a29eae23ee79b7b58366878a82f443f00cbe3
tree23580a9efe7e28354aa747a70605d9be0a7330c7
parent5bfe7458d124a1db7da54e4d548fdb0aa2f61051
[ms-abi] Small Change to pack+alignment interaction.

This patch makes a small behavioral change to the interaction between
pack and alignment.  Specifically it makes __declspec(align()) on a
field change that field's alignment without respect to pack but the
alignment change to the record alignment as a whole still obeys pack.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199172 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/RecordLayoutBuilder.cpp
test/Layout/ms-x86-pack-and-align.cpp