diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2013-12-07 00:34:23 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-12-07 00:34:23 +0000 |
commit | 1f0b3bfd75029463625643b1650e097afe227b5c (patch) | |
tree | 455bc593d9918c54c6c7575676f74a8180802490 /clang/lib/Sema/SemaInit.cpp | |
parent | 32c3f17d3655fa97817c697e8e2456e9283567ae (diff) | |
download | bcm5719-llvm-1f0b3bfd75029463625643b1650e097afe227b5c.tar.gz bcm5719-llvm-1f0b3bfd75029463625643b1650e097afe227b5c.zip |
ObjectiveC. Continuing implementation of objc_bridge_related
attribute in sema and issuing a variety of diagnostics lazily
for misuse of this attribute (and what to do) when converting
from CF types to ObjectiveC types (and vice versa).
// rdar://15499111
llvm-svn: 196629
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
-rw-r--r-- | clang/lib/Sema/SemaInit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp index 4188005c762..50ea42714fa 100644 --- a/clang/lib/Sema/SemaInit.cpp +++ b/clang/lib/Sema/SemaInit.cpp @@ -6482,6 +6482,9 @@ bool InitializationSequence::Diagnose(Sema &S, case FK_ConversionFailed: { QualType FromType = Args[0]->getType(); + if (S.getLangOpts().ObjC1) + S.CheckObjCBridgeRelatedConversions(Kind.getLocation(), + DestType, FromType); PartialDiagnostic PDiag = S.PDiag(diag::err_init_conversion_failed) << (int)Entity.getKind() << DestType |