Add comment before CheckObjCARCConversion is called on

Expr value not getting changed by this call.

llvm-svn: 133527
This commit is contained in:
Fariborz Jahanian 2011-06-21 18:19:51 +00:00
parent fc8a0fbeed
commit 40502b1229
1 changed files with 2 additions and 0 deletions

View File

@ -642,6 +642,7 @@ CheckReinterpretCast(Sema &Self, ExprResult &SrcExpr, QualType DestType,
}
} else if (tcr == TC_Success && Self.getLangOptions().ObjCAutoRefCount) {
Expr *Exp = SrcExpr.get();
// Note that Exp does not change with CCK_OtherCast cat type
Self.CheckObjCARCConversion(OpRange, DestType,
Exp, Sema::CCK_OtherCast);
}
@ -707,6 +708,7 @@ CheckStaticCast(Sema &Self, ExprResult &SrcExpr, QualType DestType,
Self.CheckCastAlign(SrcExpr.get(), DestType, OpRange);
if (Self.getLangOptions().ObjCAutoRefCount) {
Expr *Exp = SrcExpr.get();
// Note that Exp does not change with CCK_OtherCast cat type
Self.CheckObjCARCConversion(OpRange, DestType,
Exp, Sema::CCK_OtherCast);
}