[all-commits] [llvm/llvm-project] 854f5f: [Sema] Teach -Wcast-align to compute an accurate a...
Akira Hatanaka via All-commits
all-commits at lists.llvm.org
Fri May 15 01:02:36 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 854f5f332af4640d9425e9a94442629e4f5a3f98
https://github.com/llvm/llvm-project/commit/854f5f332af4640d9425e9a94442629e4f5a3f98
Author: Akira Hatanaka <ahatanaka at apple.com>
Date: 2020-05-15 (Fri, 15 May 2020)
Changed paths:
M clang/lib/Sema/SemaChecking.cpp
M clang/test/SemaCXX/warn-cast-align.cpp
Log Message:
-----------
[Sema] Teach -Wcast-align to compute an accurate alignment using the
alignment information on VarDecls in more cases
This commit improves upon https://reviews.llvm.org/D21099. The code that
computes the source alignment now understands array subscript
expressions, binary operators, derived-to-base casts, and several more
expressions.
rdar://problem/59242343
Differential Revision: https://reviews.llvm.org/D78767
More information about the All-commits
mailing list