diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-04-29 23:31:56 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-04-29 23:31:56 +0000 |
commit | 9cd6f0f58570a98a6d6acee8803c73986c6846b4 (patch) | |
tree | d447fca1d9ff01114867f36b7ec36c43d83d236a /lib/Sema/SemaDeclObjC.cpp | |
parent | 5a8cb0bda09c91d6530d943b72b1a6ac95862430 (diff) |
Change to warning when property uses an ivar in super class
in an @synthesize diective, as it breaks few projects.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70441 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | lib/Sema/SemaDeclObjC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index 7eea4ff93e..170efec5f3 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -1914,7 +1914,7 @@ Sema::DeclPtrTy Sema::ActOnPropertyImplDecl(SourceLocation AtLoc, } else if (getLangOptions().ObjCNonFragileABI && ClassDeclared != IDecl) { - Diag(PropertyLoc, diag::error_ivar_in_superclass_use) + Diag(PropertyLoc, diag::warn_ivar_in_superclass_use) << property->getDeclName() << Ivar->getDeclName() << ClassDeclared->getDeclName(); Diag(Ivar->getLocation(), diag::note_previous_access_declaration) |