Rework the way virtual primary bases are added when laying out classes. Instead of...
commit68323da86b5feb7cdcacb0a207ad777a2949bccf
authorAnders Carlsson <andersca@mac.com>
Sat, 29 May 2010 19:44:50 +0000 (29 19:44 +0000)
committerAnders Carlsson <andersca@mac.com>
Sat, 29 May 2010 19:44:50 +0000 (29 19:44 +0000)
treec57e2a263465031160f4ae461cfeec5cb19a274a
parentcc7c1e8ebb07f2211c11071193d6c3471e0dcddb
Rework the way virtual primary bases are added when laying out classes. Instead of doing it as a separate step, we now use the BaseSubobjectInfo and use it when laying out the bases. This fixes a bug where we would either not add a primary virtual base at all, or add it at the wrong offset.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105110 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/RecordLayoutBuilder.cpp
test/SemaCXX/class-layout.cpp