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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user