[cfe-commits] r160906 - /cfe/trunk/lib/Sema/SemaExprObjC.cpp
Fariborz Jahanian
fjahanian at apple.com
Fri Jul 27 17:11:31 PDT 2012
Author: fjahanian
Date: Fri Jul 27 19:11:31 2012
New Revision: 160906
URL: http://llvm.org/viewvc/llvm-project?rev=160906&view=rev
Log:
more objc-arc: With ACC_bottom, we just provide
__bride fixit, as it doesn't matter which cast to
use. // rdar://11923822
Modified:
cfe/trunk/lib/Sema/SemaExprObjC.cpp
Modified: cfe/trunk/lib/Sema/SemaExprObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprObjC.cpp?rev=160906&r1=160905&r2=160906&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprObjC.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprObjC.cpp Fri Jul 27 19:11:31 2012
@@ -2868,7 +2868,7 @@
addFixitForObjCARCConversion(S, DiagB, CCK, afterLParen,
castType, castExpr, "__bridge ", 0);
}
- if (CreateRule != ACC_plusZero)
+ if (CreateRule != ACC_plusZero && CreateRule != ACC_bottom)
{
DiagnosticBuilder DiagB = S.Diag(br ? castExpr->getExprLoc() : noteLoc,
diag::note_arc_bridge_transfer)
@@ -2900,7 +2900,7 @@
addFixitForObjCARCConversion(S, DiagB, CCK, afterLParen,
castType, castExpr, "__bridge ", 0);
}
- if (CreateRule != ACC_plusZero)
+ if (CreateRule != ACC_plusZero && CreateRule != ACC_bottom)
{
DiagnosticBuilder DiagB = S.Diag(br ? castExpr->getExprLoc() : noteLoc,
diag::note_arc_bridge_retained)
More information about the cfe-commits
mailing list