[Sema] Teach -Wcast-align to look at the aligned attribute of the
authorAkira Hatanaka <ahatanaka@apple.com>
Wed, 30 Nov 2016 19:42:03 +0000 (19:42 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Wed, 30 Nov 2016 19:42:03 +0000 (19:42 +0000)
commit21e5fdd89e8a906f9c4e4bf00151691a0ccbb2f3
tree45915070cf62eb1ee59788361a0a2437f024221e
parent5c289b77fa94d13f565d23a64a75b18140d36021
[Sema] Teach -Wcast-align to look at the aligned attribute of the
declared variables.

Teach Sema to check the aligned attribute attached to variable
declarations so that it doesn't issue spurious warnings.

rdar://problem/26517471

Differential revision: https://reviews.llvm.org/D21099

llvm-svn: 288267
clang/lib/Sema/SemaChecking.cpp
clang/test/Sema/warn-cast-align.c