summaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2014-04-29 16:12:56 +0000
committerFariborz Jahanian <fjahanian@apple.com>2014-04-29 16:12:56 +0000
commit56844d5f639baa2098427e72b800b310c7fdb060 (patch)
treebc1c861231a089eb8456fab0b169f120007d42ad /lib/Sema/SemaExpr.cpp
parentcdbc68e56e06df84b3bc7f768acc41b6e891b61f (diff)
downloadclang-56844d5f639baa2098427e72b800b310c7fdb060.tar.gz
clang-56844d5f639baa2098427e72b800b310c7fdb060.tar.bz2
clang-56844d5f639baa2098427e72b800b310c7fdb060.tar.xz
Objective-C. Improve diagnosis of bridging types.
// rdar://16737117 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207542 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r--lib/Sema/SemaExpr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index 595770dc36..b410efee3c 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -5206,6 +5206,8 @@ Sema::ActOnCastExpr(Scope *S, SourceLocation LParenLoc,
if (getLangOpts().CPlusPlus && !castType->isVoidType() &&
!getSourceManager().isInSystemMacro(LParenLoc))
Diag(LParenLoc, diag::warn_old_style_cast) << CastExpr->getSourceRange();
+
+ CheckTollFreeBridgeCast(castType, CastExpr);
return BuildCStyleCastExpr(LParenLoc, castTInfo, RParenLoc, CastExpr);
}