summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-06-11 16:40:41 +0000
committerJordan Rose <jordan_rose@apple.com>2012-06-11 16:40:41 +0000
commitefef760214b071736eca58b38edaa749a5aa8973 (patch)
tree122f9a8112c10d3034d4c9f56e93d2566628d4e3 /llvm/lib/Target/PowerPC
parent3ba8ae3fd9c493045cb52ab17b82cf498a8c5ba6 (diff)
downloadbcm5719-llvm-efef760214b071736eca58b38edaa749a5aa8973.tar.gz
bcm5719-llvm-efef760214b071736eca58b38edaa749a5aa8973.zip
[analyzer] Add ObjCLoopChecker: objects from NSArray et al are non-nil.
While collections containing nil elements can still be iterated over in an Objective-C for-in loop, the most common Cocoa collections -- NSArray, NSDictionary, and NSSet -- cannot contain nil elements. This checker adds that assumption to the analyzer state. This was the cause of some minor false positives concerning CFRelease calls on objects in an NSArray. llvm-svn: 158319
Diffstat (limited to 'llvm/lib/Target/PowerPC')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud