aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/ParseExpr.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-12-19 22:52:53 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-12-19 22:52:53 +0000
commite2eb0e997320c629b2762b56b911bff43187acaa (patch)
tree236a069ac36e74274586e2acb0d50e47bd0d98f1 /lib/Parse/ParseExpr.cpp
parentbc6abe93a5d6b1305411f8b6f54c2caa686ddc69 (diff)
objc-arc: bridge casts in non-arc mode are now
error. // rdar://10597832 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146918 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseExpr.cpp')
-rw-r--r--lib/Parse/ParseExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/ParseExpr.cpp b/lib/Parse/ParseExpr.cpp
index bb446f5ab2..bb26e28c12 100644
--- a/lib/Parse/ParseExpr.cpp
+++ b/lib/Parse/ParseExpr.cpp
@@ -1826,7 +1826,7 @@ Parser::ParseParenExpression(ParenParseOption &ExprType, bool stopIfCastExpr,
if (BridgeCast && !getLang().ObjCAutoRefCount) {
SourceLocation BridgeKeywordLoc = ConsumeToken();
if (!PP.getSourceManager().isInSystemHeader(BridgeKeywordLoc))
- Diag(BridgeKeywordLoc, diag::warn_arc_bridge_retain)
+ Diag(BridgeKeywordLoc, diag::err_arc_bridge_cast)
<< FixItHint::CreateReplacement(BridgeKeywordLoc,
"");
BridgeCast = false;