]> granicus.if.org Git - clang/commitdiff
NewCastRegion: Handle casts to any Objective-C pointer, not just qualified ids.
authorTed Kremenek <kremenek@apple.com>
Mon, 6 Jul 2009 22:39:40 +0000 (22:39 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 6 Jul 2009 22:39:40 +0000 (22:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74874 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/Store.cpp

index 3f2a10cf3591eb0c172f0686531e9acafc2533ca..49b37fa35201a24a595da877a85205e3ced96d13 100644 (file)
@@ -52,8 +52,8 @@ StoreManager::NewCastRegion(const GRState *state, const MemRegion* R,
     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);
   }