]> granicus.if.org Git - clang/commit
Honor the casted-to alignment of an explicit cast even when
authorJohn McCall <rjmccall@apple.com>
Tue, 29 Sep 2015 04:37:40 +0000 (04:37 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 29 Sep 2015 04:37:40 +0000 (04:37 +0000)
commit6963521379311a80c849bf4b81fcfe4604483f0f
treec7c0c1a95fc313d1d345c384ee5faaad8f1c1426
parent68e121c338986be915981767aa4dbf572f5be8c7
Honor the casted-to alignment of an explicit cast even when
Sema thinks the cast is a no-op, as it does when (e.g.) the
only thing that changes is an alignment attribute.

Fixed PR24944.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248775 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExpr.cpp
test/CodeGen/alignment.c