summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclObjC.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2015-10-28 05:03:19 +0000
committerJohn McCall <rjmccall@apple.com>2015-10-28 05:03:19 +0000
commitc6af8c606dae9a9b728d5099d5964ea6540dc22c (patch)
tree0a19128c0f58cc451454838159b232968eb359e5 /clang/lib/Sema/SemaDeclObjC.cpp
parent9b1534df9da6695fde3d639e8ee3b9a7cf36b0a4 (diff)
downloadbcm5719-llvm-c6af8c606dae9a9b728d5099d5964ea6540dc22c.tar.gz
bcm5719-llvm-c6af8c606dae9a9b728d5099d5964ea6540dc22c.zip
Refine r251469 to give better (and more localizable) diagnostics
for all the reasons that ARC makes things implicitly unavailable. llvm-svn: 251496
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclObjC.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp
index dbdb558ba42..90c829e740c 100644
--- a/clang/lib/Sema/SemaDeclObjC.cpp
+++ b/clang/lib/Sema/SemaDeclObjC.cpp
@@ -100,9 +100,8 @@ bool Sema::checkInitMethod(ObjCMethodDecl *method,
// If we're in a system header, and this is not a call, just make
// the method unusable.
if (receiverTypeIfCall.isNull() && getSourceManager().isInSystemHeader(loc)) {
- method->addAttr(UnavailableAttr::CreateImplicit(Context,
- "init method returns a type unrelated to its receiver type",
- loc));
+ method->addAttr(UnavailableAttr::CreateImplicit(Context, "",
+ UnavailableAttr::IR_ARCInitReturnsUnrelated, loc));
return true;
}
OpenPOWER on IntegriCloud