[cfe-commits] r160923 - /cfe/trunk/lib/Sema/SemaExprObjC.cpp
Fariborz Jahanian
fjahanian at apple.com
Sat Jul 28 11:59:49 PDT 2012
Author: fjahanian
Date: Sat Jul 28 13:59:49 2012
New Revision: 160923
URL: http://llvm.org/viewvc/llvm-project?rev=160923&view=rev
Log:
assert on ACC_bottom when checking for invalid
CF to ARC conversions.
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=160923&r1=160922&r2=160923&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprObjC.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprObjC.cpp Sat Jul 28 13:59:49 2012
@@ -2868,7 +2868,8 @@
addFixitForObjCARCConversion(S, DiagB, CCK, afterLParen,
castType, castExpr, "__bridge ", 0);
}
- if (CreateRule != ACC_plusZero && CreateRule != ACC_bottom)
+ assert (CreateRule != ACC_bottom);
+ if (CreateRule != ACC_plusZero)
{
DiagnosticBuilder DiagB = S.Diag(br ? castExpr->getExprLoc() : noteLoc,
diag::note_arc_bridge_transfer)
@@ -2900,7 +2901,8 @@
addFixitForObjCARCConversion(S, DiagB, CCK, afterLParen,
castType, castExpr, "__bridge ", 0);
}
- if (CreateRule != ACC_plusZero && CreateRule != ACC_bottom)
+ assert (CreateRule != ACC_bottom);
+ if (CreateRule != ACC_plusZero)
{
DiagnosticBuilder DiagB = S.Diag(br ? castExpr->getExprLoc() : noteLoc,
diag::note_arc_bridge_retained)
More information about the cfe-commits
mailing list