diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2017-01-26 18:13:06 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2017-01-26 18:13:06 +0000 |
commit | 5d55a6c69d083146112a2ed0152a427346083ffd (patch) | |
tree | 4867799045180b6b0c2568aaa35c29bef4c1d51e /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 61da067393b1c7151d30c382a6e5b1b5befe4975 (diff) | |
download | bcm5719-llvm-5d55a6c69d083146112a2ed0152a427346083ffd.tar.gz bcm5719-llvm-5d55a6c69d083146112a2ed0152a427346083ffd.zip |
[Sema][ObjC] Make sure -Wblock-capture-autoreleasing issues a warning
even in the presence of nullability qualifiers.
This commit fixes bugs in r285031 where -Wblock-capture-autoreleasing
wouldn't issue warnings when the function parameters were annotated
with nullability qualifiers. Specifically, look through the sugar and
see if there is an AttributedType of kind attr_objc_ownership to
determine whether __autoreleasing was explicitly specified or implicitly
added by the compiler.
rdar://problem/30193488
llvm-svn: 293194
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions