]> granicus.if.org Git - clang/commit
Don't look through casts when looking for the underlying decl for a function
authorEli Friedman <eli.friedman@gmail.com>
Sat, 26 Dec 2009 03:35:45 +0000 (03:35 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sat, 26 Dec 2009 03:35:45 +0000 (03:35 +0000)
commitefa42f7d88a33c0c00e571fbcba8032a9baf7088
tree509c22743508dbff37d0e88f4b417241d2713afc
parente6d11b75f68980645fa695b56dc24487ecf13c32
Don't look through casts when looking for the underlying decl for a function
call; the standard doesn't expect us to, and the program could be doing
something crazy.  Fixes PR5882.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92166 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
test/CodeGen/func-ptr-cast-decl.c [new file with mode: 0644]