]> granicus.if.org Git - clang/commit
Clean up empty struct/union recognition.
authorSerge Pavlov <sepavloff@gmail.com>
Mon, 17 Jun 2013 17:18:51 +0000 (17:18 +0000)
committerSerge Pavlov <sepavloff@gmail.com>
Mon, 17 Jun 2013 17:18:51 +0000 (17:18 +0000)
commit0dcea35c21b001c9c2c9b4d4a8cfd4c82dc5f00c
tree90e83f1fb477ec9db33be31e18f869b1800402f2
parentd395e34ae7aeeeaf9a37a12bc0f6de87158c95c3
Clean up empty struct/union recognition.
Make use of getTypeSizeInChars to detect structs/unions of zero size. It allows
more accurate detection of types of zero size. It however has a side effect -
sequence of used types may change, that is why the test 'override-layout' was
modified.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184088 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
test/CodeGen/override-layout.c
test/Sema/empty1.c