summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-11-15 03:04:34 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-11-15 03:04:34 +0000
commit7f77eb90a54c96168d6cce8ad3a85d1454cdb80c (patch)
tree9209507d1706b1af523846a7b3b30661fc35e8f5 /clang/lib/Parse/ParseDecl.cpp
parent07fa1766699ed035a2d5388f7b492c4fd9e54028 (diff)
downloadbcm5719-llvm-7f77eb90a54c96168d6cce8ad3a85d1454cdb80c.tar.gz
bcm5719-llvm-7f77eb90a54c96168d6cce8ad3a85d1454cdb80c.zip
[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
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud