diff options
author | Eric Fiselier <eric@efcs.ca> | 2015-10-09 00:17:57 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2015-10-09 00:17:57 +0000 |
commit | 18677d51e04af0b4a11212047dbbeefdd0231869 (patch) | |
tree | 9829d5ec07c89a8bfaeecf56ef346f3f416458a9 /libcxx/include/float.h | |
parent | ebef256269997b5466d387c2a8b0ce93b34142eb (diff) | |
download | bcm5719-llvm-18677d51e04af0b4a11212047dbbeefdd0231869.tar.gz bcm5719-llvm-18677d51e04af0b4a11212047dbbeefdd0231869.zip |
Skip NonNull sema checks in unevaluated contexts.
Summary:
Currently when a function annotated with __attribute__((nonnull)) is called in an unevaluated context with a null argument a -Wnonnull warning is emitted.
This warning seems like a false positive unless the call expression is potentially evaluated. Change this behavior so that the non-null warnings use DiagRuntimeBehavior so they wont emit when they won't be evaluated.
Reviewers: majnemer, rsmith
Subscribers: mclow.lists, cfe-commits
Differential Revision: http://reviews.llvm.org/D13408
llvm-svn: 249787
Diffstat (limited to 'libcxx/include/float.h')
0 files changed, 0 insertions, 0 deletions