]> granicus.if.org Git - clang/commit
Teach __alignof__ to look through arrays before performing the
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 10 Jun 2014 23:43:44 +0000 (23:43 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 10 Jun 2014 23:43:44 +0000 (23:43 +0000)
commitae83eca8d28ac331d927c74ce90066e14b6591a5
treed18284b04138646fe7a15862cc41177da1e31c8e
parent703ae55cf56de8d6379a7b84488970dc29826030
Teach __alignof__ to look through arrays before performing the
preferred-alignment transformations. Corrects alignof(T[]) to return
alignof(T) in all cases, as required by relevant standards.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210609 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTContext.cpp
test/Sema/align-x86.c