]> granicus.if.org Git - clang/commit
Microsoft Record Layout: zero sized base after base with vbtbl fix
authorWarren Hunt <whunt@google.com>
Tue, 19 Nov 2013 22:11:09 +0000 (22:11 +0000)
committerWarren Hunt <whunt@google.com>
Tue, 19 Nov 2013 22:11:09 +0000 (22:11 +0000)
commit6727dbd52a0c8ac85658ed43678eed1b53ee6407
treeaa27ebca4f59f4b6d62b782d27c56ff505f9ad25
parent1334490e37b5e10d3ee699c445290c3daf2d877e
Microsoft Record Layout: zero sized base after base with vbtbl fix

Microsoft adds an extra byte of padding before laying out zero sized
non-virtual bases if the non-virtual base before it contains a vbptr.
This patch adds the same behavior to clang.

Differential Revision: http://llvm-reviews.chandlerc.com/D2106

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195158 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/RecordLayoutBuilder.cpp
test/Layout/ms-x86-empty-base-after-base-with-vbptr.cpp [new file with mode: 0644]