]> granicus.if.org Git - clang/commit
[ms-abi] Reordering __declspec(align) pragma pack handling
authorWarren Hunt <whunt@google.com>
Mon, 13 Jan 2014 22:25:55 +0000 (22:25 +0000)
committerWarren Hunt <whunt@google.com>
Mon, 13 Jan 2014 22:25:55 +0000 (22:25 +0000)
commitd18d1517f601ae5b2249ca1bd4e6db906cf3985e
treec539fe049d5a8ce50d37694b4ee829a03988bcb0
parentb44435d22f19cefa9c0c555d62f33781408b5e89
[ms-abi] Reordering __declspec(align) pragma pack handling

This patch moves the check for pragma pack until after the application
of __declspec align to before pragma pack.  This causes observable
changes in the use of tail padding for bases.  A test case is included.

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