From b9a44250c502cf9f9a2c18ccd50f06158dd7357b 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74874 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/Store.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.40.0