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)
commitcabdeb49323872c5442c60410ea7f194c7ff9139
tree38e3bd0104fe685d64a3582091c04f2bfb8a24f8
parent1814e81e17f15afc73adb7e5b4ddc044f16b02c5
Use the CGRecordLayoutBuilder even if there are no fields, because in C++ an empty class will have a padding byte.

llvm-svn: 77205
clang/lib/CodeGen/CodeGenTypes.cpp
clang/test/CodeGenCXX/class-layout.cpp [new file with mode: 0644]