]> granicus.if.org Git - clang/commit
Merging r326476:
authorTom Stellard <tstellar@redhat.com>
Wed, 30 May 2018 18:19:45 +0000 (18:19 +0000)
committerTom Stellard <tstellar@redhat.com>
Wed, 30 May 2018 18:19:45 +0000 (18:19 +0000)
commit8b2f6d556594644cbae00636ca772508ce538d94
tree3a3eded8448f3a24df921ad9374ce38f8e87c8c1
parent060f2b897c8e48a401be22af4c23f5c96d4f8ca5
Merging r326476:

------------------------------------------------------------------------
r326476 | mstorsjo | 2018-03-01 12:22:57 -0800 (Thu, 01 Mar 2018) | 7 lines

[RecordLayout] Only assert that fundamental type sizes are power of two on MSVC

Make types with sizes that aren't a power of two an error (that can
be disabled) in structs with ms_struct layout, except on mingw where
the situation is quite likely to occur and GCC handles it silently.

Differential Revision: https://reviews.llvm.org/D43908
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_60@333571 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/RecordLayoutBuilder.cpp
test/CodeGen/ms_struct-long-double.c [new file with mode: 0644]