summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2017-10-26 13:18:14 +0000
committerRoman Lebedev <lebedev.ri@gmail.com>2017-10-26 13:18:14 +0000
commit809df34efc653c6a471f951305a88bd5e675b522 (patch)
tree1ed67efd3e920ff9d13d646ba5b89cdceb31ea27 /llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
parent83454aaec49521b9ed66af0c8cacef196b2d536a (diff)
downloadbcm5719-llvm-809df34efc653c6a471f951305a88bd5e675b522.tar.gz
bcm5719-llvm-809df34efc653c6a471f951305a88bd5e675b522.zip
[Sema] -Wzero-as-null-pointer-constant: don't warn for system macros other than NULL.
Summary: The warning was initially introduced in D32914 by @thakis, and the concerns were raised there, and later in rL302247 and PR33771. I do believe that it makes sense to relax the diagnostic e.g. in this case, when the expression originates from the system header, which can not be modified. This prevents adoption for the diagnostic for codebases which use pthreads (`PTHREAD_MUTEX_INITIALIZER`), gtest, etc. As @malcolm.parsons suggests, it *may* make sense to also not warn for the template types, but it is not obvious to me how to do that in here. Though, it still makes sense to complain about `NULL` macro. While there, add more tests. Reviewers: dblaikie, thakis, rsmith, rjmccall, aaron.ballman Reviewed By: thakis Subscribers: Rakete1111, hans, cfe-commits, thakis, malcolm.parsons Tags: #clang Differential Revision: https://reviews.llvm.org/D38954 llvm-svn: 316662
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud