summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
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
commit40502b122921b3d24aef45430e90c2e0c2ebd2c9 (patch)
tree718d7d92f3f02feec7bc88bb109584d0e559c5fd /clang/lib/Sema
parentfc8a0fbeedefa0f7a6f89fa641c4099b1e569504 (diff)
downloadbcm5719-llvm-40502b122921b3d24aef45430e90c2e0c2ebd2c9.tar.gz
bcm5719-llvm-40502b122921b3d24aef45430e90c2e0c2ebd2c9.zip
Add comment before CheckObjCARCConversion is called on
Expr value not getting changed by this call. llvm-svn: 133527
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaCXXCast.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaCXXCast.cpp b/clang/lib/Sema/SemaCXXCast.cpp
index 5f1a355c8af..40086d6eff7 100644
--- a/clang/lib/Sema/SemaCXXCast.cpp
+++ b/clang/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);
}
OpenPOWER on IntegriCloud