]> granicus.if.org Git - clang/commit
[analyzer] [RetainCountChecker] Fix object type for CF/Obj-C bridged casts
authorGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 1 Feb 2019 02:13:02 +0000 (02:13 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 1 Feb 2019 02:13:02 +0000 (02:13 +0000)
commit1f33898962cf3a3c9f44736e14f269938af9248d
tree9f34fac11b706d1be42957de32b04d196bd58215
parent0e113424b84d68a82437784b27b8836f3fa47e6a
[analyzer] [RetainCountChecker] Fix object type for CF/Obj-C bridged casts

Having an incorrect type for a cast causes the checker to incorrectly
dismiss the operation under ARC, leading to a false positive
use-after-release on the test.

rdar://47709885

Differential Revision: https://reviews.llvm.org/D57557

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352824 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp
test/Analysis/objc-arc.m