Go to file
Eric Fiselier 18677d51e0 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
2015-10-09 00:17:57 +00:00
clang Skip NonNull sema checks in unevaluated contexts. 2015-10-09 00:17:57 +00:00
clang-tools-extra Adding a checker (cert-err52-cpp) that detects use of setjmp or longjmp in C++ code. Corresponds to the CERT C++ secure coding rule: https://www.securecoding.cert.org/confluence/pages/viewpage.action?pageId=1834 2015-10-08 19:54:43 +00:00
compiler-rt Fix msan tests build. 2015-10-08 22:21:36 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc integer: remove explicit casts from _MIN definitions 2015-10-06 19:12:12 +00:00
libcxx Fix test failure in C++98 mode due to imperfect static_assert emulation. 2015-10-08 23:44:26 +00:00
libcxxabi Fix incorrect parsing of arguments for nested functions. Reviewed as http://reviews.llvm.org/D13192. Thanks to Anseny Kapoulkine for the patch. 2015-10-08 03:02:09 +00:00
libunwind unwind: Allow the building of libunwind for MIPS. 2015-09-26 18:26:01 +00:00
lld ELF2: Split Writer::createSections into small functions. 2015-10-08 23:49:30 +00:00
lldb Added support for enumerating the languages that actually support TypeSystems 2015-10-08 23:07:53 +00:00
llgo [llgo] irgen: always use TargetMachine's data layout 2015-09-25 06:28:14 +00:00
llvm [SEH] Fix llvm.eh.exceptioncode fast register allocation assertion 2015-10-09 00:15:13 +00:00
openmp Formatting/Whitespace/Comment changes associated with wait/release improvements. 2015-10-08 19:44:16 +00:00
polly [FIX] Add missing projection for invariant load domains 2015-10-08 11:05:57 +00:00