]> granicus.if.org Git - clang/commit
[ms-abi] Fixes improperly sized vfptrs with pragma pack
authorWarren Hunt <whunt@google.com>
Thu, 26 Dec 2013 22:09:12 +0000 (22:09 +0000)
committerWarren Hunt <whunt@google.com>
Thu, 26 Dec 2013 22:09:12 +0000 (22:09 +0000)
commita99cea3d48feb249db50334327162edb9f792309
tree2797941d4c67007064ded1f65ee05abfea2f5385
parent574efb02fa1955f58bb0f9c7b4594cbbd972da45
[ms-abi] Fixes improperly sized vfptrs with pragma pack

With pragma pack, the layout engine would produce vfptrs that were
packed width rather than pointer width.  This patch addresses the issue
and adds a test case.

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