]> granicus.if.org Git - clang/commit
AST: Respect alignment attributes on typedef'd arrays
authorJustin Bogner <mail@justinbogner.com>
Tue, 15 Apr 2014 20:12:41 +0000 (20:12 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 15 Apr 2014 20:12:41 +0000 (20:12 +0000)
commitd4686175c476527fbf1350c5029f10f9fc456b5b
treef51261df6895785c50cb3ac044cd41792ae23776
parente943a6246e237ad75c52833248926e02d9d5d698
AST: Respect alignment attributes on typedef'd arrays

When instantiating an array that has an alignment attribute on it, we
were looking through the array type and only considering the element
type for the resulting alignment. We need to make sure we take the
array's requirements into account too.

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