]> granicus.if.org Git - clang/commit
Use the CGRecordLayoutBuilder even if there are no fields, because in C++ an empty...
authorAnders Carlsson <andersca@mac.com>
Mon, 27 Jul 2009 17:10:54 +0000 (17:10 +0000)
committerAnders Carlsson <andersca@mac.com>
Mon, 27 Jul 2009 17:10:54 +0000 (17:10 +0000)
commit696798febaf1f69020cdf7474b91e71736c5aa69
tree434dffae64ee55b07a724ad6ee70585dae79ce24
parentabdad358b53d0efd1d89ea434b7078600a656d1f
Use the CGRecordLayoutBuilder even if there are no fields, because in C++ an empty class will have a padding byte.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77205 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenTypes.cpp
test/CodeGenCXX/class-layout.cpp [new file with mode: 0644]