]> granicus.if.org Git - clang/commit
MS ABI: Correct layout for empty records
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 30 Sep 2014 06:45:43 +0000 (06:45 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 30 Sep 2014 06:45:43 +0000 (06:45 +0000)
commita129dbbe1d994a7d8f04c1012eda8d29ead91330
tree9de5c98cd206c13b07a0e4971f987a966d8341d9
parente0d26d6fa7dee8cbef088c49f61a6fe3b1b957a8
MS ABI: Correct layout for empty records

Empty records do not always have size equivalent to their alignment.
They only do so when their alignment is at least as large as the minimum
empty struct size: 1 byte in C++ and 4 bytes in C.

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