]> granicus.if.org Git - clang/commit
Improves compatibility with cl.exe when laying out array fields
authorWarren Hunt <whunt@google.com>
Fri, 1 Nov 2013 23:59:41 +0000 (23:59 +0000)
committerWarren Hunt <whunt@google.com>
Fri, 1 Nov 2013 23:59:41 +0000 (23:59 +0000)
commitcaf759752b086ef30b6c564654b382d17fb0c16f
treee1a7dffe8fa54fb0447aabbbaa35b06f29c910b2
parent2d023ecb2b9204a3dbc3b88ad9564b0a5bc211f6
Improves compatibility with cl.exe when laying out array fields

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

Clang was "improperly" over-aligning arrays with sizes are not a multiple of
their alignment.
This behavior was removed in microsoft 32 bit mode.

In addition, after examination of ASTContext::getTypeInfoImpl, a redundant code block in
MicrosoftRecordLayoutBuilder::getAdjustedFieldInfo was deleted.

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