[PATCH] D23236: When ARC is enabled, no warning will be generated when a method1. Returns 'nil' in a method that is attributed to return a 'nonnull'2. The return-statement is a ConditionalOperator, where the lhs is nil and rhs an objC-method-call (or the other...
Devin Coughlin via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 6 14:48:08 PDT 2016
dcoughlin added a comment.
I left out the example I was describing above for 'InitializationSequence::Perform()':
@interface Bar
- (nonnull Bar *)method;
@end
@implementation Bar
- (Bar *)method {
return 0;
}
@end
https://reviews.llvm.org/D23236
More information about the cfe-commits
mailing list