aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-06-21 18:19:51 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-06-21 18:19:51 +0000
commitcccd6debd98a253c9e7ce0619ac701b3cf2cf0a3 (patch)
tree0e263fd790bf6e472a7ebd8652ff700d7348e14b
parent1b132906ad580755e501ad0b3862e2d5a34106d1 (diff)
Add comment before CheckObjCARCConversion is called on
Expr value not getting changed by this call. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133527 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/SemaCXXCast.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Sema/SemaCXXCast.cpp b/lib/Sema/SemaCXXCast.cpp
index 5f1a355c8a..40086d6eff 100644
--- a/lib/Sema/SemaCXXCast.cpp
+++ b/lib/Sema/SemaCXXCast.cpp
@@ -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);
}