From: Ted Kremenek Date: Mon, 6 Jul 2009 22:39:40 +0000 (+0000) Subject: NewCastRegion: Handle casts to any Objective-C pointer, not just qualified ids. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9a44250c502cf9f9a2c18ccd50f06158dd7357b;p=clang NewCastRegion: Handle casts to any Objective-C pointer, not just qualified ids. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74874 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/Store.cpp b/lib/Analysis/Store.cpp index 3f2a10cf35..49b37fa352 100644 --- a/lib/Analysis/Store.cpp +++ b/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); }