From bb5a62d46e584d58739c4c388cce770f32c204bd Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Mon, 6 Jul 2009 22:39:40 +0000 Subject: [PATCH] NewCastRegion: Handle casts to any Objective-C pointer, not just qualified ids. llvm-svn: 74874 --- clang/lib/Analysis/Store.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/lib/Analysis/Store.cpp b/clang/lib/Analysis/Store.cpp index 3f2a10cf3591..49b37fa35201 100644 --- a/clang/lib/Analysis/Store.cpp +++ b/clang/lib/Analysis/Store.cpp @@ -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); }