forked from OSchip/llvm-project
Diagnose invalid code with -fobjc-nonfragile-abi2 when
property is being accessed without the dot-syntax notation. (radar 7822344). llvm-svn: 100212
This commit is contained in:
parent
ab5d7aef72
commit
a9f8675e02
|
@ -1345,11 +1345,6 @@ Sema::LookupInObjCMethod(LookupResult &Lookup, Scope *S,
|
|||
}
|
||||
}
|
||||
}
|
||||
if (LangOpts.ObjCNonFragileABI2 && LookForIvars && Lookup.empty()) {
|
||||
ObjCIvarDecl *Ivar = SynthesizeNewPropertyIvar(IFace, II);
|
||||
if (Ivar)
|
||||
return LookupInObjCMethod(Lookup, S, II, AllowBuiltinCreation);
|
||||
}
|
||||
// Sentinel value saying that we didn't do anything special.
|
||||
return Owned((Expr*) 0);
|
||||
}
|
||||
|
|
|
@ -23,12 +23,12 @@
|
|||
//@synthesize howMany, what;
|
||||
|
||||
- (int) howMany {
|
||||
return howMany;
|
||||
return self.howMany;
|
||||
}
|
||||
// - (void) setHowMany: (int) value
|
||||
|
||||
- (NSString*) what {
|
||||
return what;
|
||||
return self.what;
|
||||
}
|
||||
// - (void) setWhat: (NSString*) value
|
||||
@end
|
||||
|
@ -44,12 +44,12 @@
|
|||
|
||||
// - (int) howMany
|
||||
- (void) setHowMany: (int) value {
|
||||
howMany = value;
|
||||
self.howMany = value;
|
||||
}
|
||||
|
||||
// - (NSString*) what
|
||||
- (void) setWhat: (NSString*) value {
|
||||
if (what != value) {
|
||||
if (self.what != value) {
|
||||
}
|
||||
}
|
||||
@end
|
||||
|
@ -64,17 +64,17 @@
|
|||
//@synthesize howMany, what; // REM: Redundant anyway
|
||||
|
||||
- (int) howMany {
|
||||
return howMany;
|
||||
return self.howMany;
|
||||
}
|
||||
- (void) setHowMany: (int) value {
|
||||
howMany = value;
|
||||
self.howMany = value;
|
||||
}
|
||||
|
||||
- (NSString*) what {
|
||||
return what;
|
||||
return self.what;
|
||||
}
|
||||
- (void) setWhat: (NSString*) value {
|
||||
if (what != value) {
|
||||
if (self.what != value) {
|
||||
}
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue