summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDevin Coughlin <dcoughlin@apple.com>2016-01-22 01:01:11 +0000
committerDevin Coughlin <dcoughlin@apple.com>2016-01-22 01:01:11 +0000
commit4a330201ffc2d45c316b89e35c90412fd8f26cbb (patch)
tree559189645d9b150370394ab00fea16f838772a54 /llvm
parentcef5c9551b620194df5530558e98eef61c625cb7 (diff)
downloadbcm5719-llvm-4a330201ffc2d45c316b89e35c90412fd8f26cbb.tar.gz
bcm5719-llvm-4a330201ffc2d45c316b89e35c90412fd8f26cbb.zip
[analyzer] Suppress nullability warning for defensive super initializer idiom.
A common idiom in Objective-C initializers is for a defensive nil-check on the result of a call to a super initializer: if (self = [super init]) { ... } return self; To avoid warning on this idiom, the nullability checker now suppress diagnostics for returns of nil on syntactic 'return self' even in initializers with non-null return types. llvm-svn: 258461
Diffstat (limited to 'llvm')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud