Go to file
David Majnemer 7f77eb90a5 [Sema] Don't crash trying to diagnose abs called on a pointer type
Clang tries to figure out if a call to abs is suspicious by looking
through implicit casts to look at the underlying, implicitly converted
type.
Interestingly, C has implicit conversions from pointer-ish types like
function to less exciting types like int.  This trips up our 'abs'
checker because it doesn't know which variant of 'abs' is appropriate.

Instead, diagnose 'abs' called on function types upfront.  This sort of
thing is highly suspicious and is likely indicative of a missing
pointer dereference/function call/array index operation.

This fixes PR25532.

llvm-svn: 253156
2015-11-15 03:04:34 +00:00
clang [Sema] Don't crash trying to diagnose abs called on a pointer type 2015-11-15 03:04:34 +00:00
clang-tools-extra [clang-tidy] Remove unused #includes. 2015-11-13 12:16:10 +00:00
compiler-rt Reverting r253080 ([tsan] Don't demangle names not starting with "_Z"). 2015-11-14 10:42:08 +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 Implement P0074: Making owner_less more flexible 2015-11-12 15:56:44 +00:00
libcxxabi Fix LIBCXXABI_HAS_NO_THREADS configuration. 2015-10-14 19:21:38 +00:00
libunwind Make it possible to use libunwind without heap. 2015-11-09 06:57:29 +00:00
lld [ELF2] - Implemented PT_GNU_STACK support, -z execstack option. 2015-11-14 20:56:08 +00:00
lldb Add more autotools/gmake NetBSD glue 2015-11-15 02:00:09 +00:00
llgo debug: Update for debug info API change. 2015-11-05 22:04:20 +00:00
llvm Use a different block id for block of metadata kind records 2015-11-15 02:00:09 +00:00
openmp Add debug trace message for hierarchical barrier 2015-11-12 21:40:39 +00:00
polly ScopInfo: Reset compute operations before starting compute out region 2015-11-13 16:56:13 +00:00