]> granicus.if.org Git - clang/commit
When checking for nonnull parameter attributes, also check the ParmVarDecl since...
authorAaron Ballman <aaron@aaronballman.com>
Thu, 11 Dec 2014 19:35:42 +0000 (19:35 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 11 Dec 2014 19:35:42 +0000 (19:35 +0000)
commitc41e03addf008ecc03cec42596db7fa55dd95329
treec069ac4c21095e286c527c54230827161e321db3
parentb13e6793c22b2fabc614dd46e912fa9c18769645
When checking for nonnull parameter attributes, also check the ParmVarDecl since the attribute may reside there, instead of just on the FunctionDecl. Fixes PR21668.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224039 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
lib/Sema/SemaExpr.cpp
test/Sema/nonnull.c