summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExprObjC.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/SemaExprObjC.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/SemaExprObjC.cpp')
-rw-r--r--clang/lib/Sema/SemaExprObjC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExprObjC.cpp b/clang/lib/Sema/SemaExprObjC.cpp
index b663566ff70..227b322adb3 100644
--- a/clang/lib/Sema/SemaExprObjC.cpp
+++ b/clang/lib/Sema/SemaExprObjC.cpp
@@ -3472,7 +3472,7 @@ diagnoseObjCARCConversion(Sema &S, SourceRange castRange,
(castRange.isValid() ? castRange.getBegin() : castExpr->getExprLoc());
if (S.makeUnavailableInSystemHeader(loc,
- "converts between Objective-C and C pointers in -fobjc-arc"))
+ UnavailableAttr::IR_ARCForbiddenConversion))
return;
QualType castExprType = castExpr->getType();
OpenPOWER on IntegriCloud