[cfe-commits] r133527 - /cfe/trunk/lib/Sema/SemaCXXCast.cpp

Fariborz Jahanian fjahanian at apple.com
Tue Jun 21 11:19:51 PDT 2011


Author: fjahanian
Date: Tue Jun 21 13:19:51 2011
New Revision: 133527

URL: http://llvm.org/viewvc/llvm-project?rev=133527&view=rev
Log:
Add comment before CheckObjCARCConversion is called on
Expr value not getting changed by this call.

Modified:
    cfe/trunk/lib/Sema/SemaCXXCast.cpp

Modified: cfe/trunk/lib/Sema/SemaCXXCast.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaCXXCast.cpp?rev=133527&r1=133526&r2=133527&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaCXXCast.cpp (original)
+++ cfe/trunk/lib/Sema/SemaCXXCast.cpp Tue Jun 21 13:19:51 2011
@@ -642,6 +642,7 @@
     }
   } 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 @@
       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);
     }





More information about the cfe-commits mailing list