summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2014-06-26 21:22:16 +0000
committerFariborz Jahanian <fjahanian@apple.com>2014-06-26 21:22:16 +0000
commit53f867ac45ab2bd572d44dc96e476d8f398b2be0 (patch)
treed29fe3f828cec452f47ad942e602fbd713d916cb /clang/lib/Sema/SemaExpr.cpp
parentf05a499339ff235fc6247593ee30338d089f8cfd (diff)
downloadbcm5719-llvm-53f867ac45ab2bd572d44dc96e476d8f398b2be0.tar.gz
bcm5719-llvm-53f867ac45ab2bd572d44dc96e476d8f398b2be0.zip
Objective-C ARC. Provide diagnostic and fix-it
when casting a retainable object to a objc_bridge_related CF type with the suggestion of applying the method specified in the bridging attribute to the object. // rdar://15932435 llvm-svn: 211807
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 8153dff4970..2f1d1a61729 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -5274,7 +5274,9 @@ Sema::ActOnCastExpr(Scope *S, SourceLocation LParenLoc,
Diag(LParenLoc, diag::warn_old_style_cast) << CastExpr->getSourceRange();
CheckTollFreeBridgeCast(castType, CastExpr);
-
+
+ CheckObjCBridgeRelatedCast(castType, CastExpr);
+
return BuildCStyleCastExpr(LParenLoc, castTInfo, RParenLoc, CastExpr);
}
OpenPOWER on IntegriCloud