diff options
author | Devin Coughlin <dcoughlin@apple.com> | 2016-01-22 01:01:11 +0000 |
---|---|---|
committer | Devin Coughlin <dcoughlin@apple.com> | 2016-01-22 01:01:11 +0000 |
commit | 4a330201ffc2d45c316b89e35c90412fd8f26cbb (patch) | |
tree | 559189645d9b150370394ab00fea16f838772a54 /llvm | |
parent | cef5c9551b620194df5530558e98eef61c625cb7 (diff) | |
download | bcm5719-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