diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-01-31 23:20:03 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-01-31 23:20:03 +0000 |
commit | 293a45e724a15fb58b8805a5791f9f3aee769cf6 (patch) | |
tree | 79ce4a5d9d71ab73e6e75a53a2e581de6863119a /lib/Sema/SemaObjCProperty.cpp | |
parent | e4be87eb661ff12524074184f43b9d11d06ad376 (diff) |
Improve the diagnostic for -Wcustom-atomic-properties. Suggestion by Fariborz!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124620 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaObjCProperty.cpp')
-rw-r--r-- | lib/Sema/SemaObjCProperty.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaObjCProperty.cpp b/lib/Sema/SemaObjCProperty.cpp index 2f5be47806..b086ca7514 100644 --- a/lib/Sema/SemaObjCProperty.cpp +++ b/lib/Sema/SemaObjCProperty.cpp @@ -1096,13 +1096,13 @@ Sema::AtomicPropertySetterGetterRules (ObjCImplDecl* IMPDecl, if (GetterMethod) { Diag(GetterMethod->getLocation(), diag::warn_default_atomic_custom_getter_setter) - << Property->getIdentifier(); + << Property->getIdentifier() << 0; Diag(Property->getLocation(), diag::note_property_declare); } if (SetterMethod) { Diag(SetterMethod->getLocation(), diag::warn_default_atomic_custom_getter_setter) - << Property->getIdentifier(); + << Property->getIdentifier() << 1; Diag(Property->getLocation(), diag::note_property_declare); } } |