diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-08-26 21:21:19 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-08-26 21:21:19 +0000 |
commit | 9414449e299036efbd411d92266983dfc24e24e9 (patch) | |
tree | f66dd17c76cda39c0b16538d8c1d4c454cf085fa /lib/Sema/SemaObjCProperty.cpp | |
parent | cec52f0623d57f090e3477941acebe4932fa7abd (diff) |
objc-arc: Mention property's attribute by name when
finding life-time conflict with its declared ivar.
// rdar://10007230
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138659 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaObjCProperty.cpp')
-rw-r--r-- | lib/Sema/SemaObjCProperty.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Sema/SemaObjCProperty.cpp b/lib/Sema/SemaObjCProperty.cpp index 46f64561af..4b9cd66f96 100644 --- a/lib/Sema/SemaObjCProperty.cpp +++ b/lib/Sema/SemaObjCProperty.cpp @@ -487,7 +487,9 @@ static void checkARCPropertyImpl(Sema &S, SourceLocation propertyImplLoc, case Qualifiers::OCL_Strong: S.Diag(propertyImplLoc, diag::err_arc_assign_property_ownership) << property->getDeclName() - << ivar->getDeclName(); + << ivar->getDeclName() + << ((property->getPropertyAttributesAsWritten() + & ObjCPropertyDecl::OBJC_PR_assign) != 0); break; } |