[cfe-commits] r74874 - /cfe/trunk/lib/Analysis/Store.cpp

Ted Kremenek kremenek at apple.com
Mon Jul 6 15:39:40 PDT 2009


Author: kremenek
Date: Mon Jul  6 17:39:40 2009
New Revision: 74874

URL: http://llvm.org/viewvc/llvm-project?rev=74874&view=rev
Log:
NewCastRegion: Handle casts to any Objective-C pointer, not just qualified ids.

Modified:
    cfe/trunk/lib/Analysis/Store.cpp

Modified: cfe/trunk/lib/Analysis/Store.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/Store.cpp?rev=74874&r1=74873&r2=74874&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/Store.cpp (original)
+++ cfe/trunk/lib/Analysis/Store.cpp Mon Jul  6 17:39:40 2009
@@ -52,8 +52,8 @@
     return CastResult(state, R);
   }
 
-  // Check cast to ObjCQualifiedID type.
-  if (ToTy->isObjCQualifiedIdType()) {
+  // Handle casts to Objective-C objects.
+  if (Ctx.isObjCObjectPointerType(ToTy)) {
     state = setCastType(state, R, ToTy);
     return CastResult(state, R);
   }





More information about the cfe-commits mailing list