diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-07-06 22:39:40 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-07-06 22:39:40 +0000 |
commit | b9a44250c502cf9f9a2c18ccd50f06158dd7357b (patch) | |
tree | 876fecc9eff9157f8ad21acbd9a0a546d8969e2d /lib/Analysis/Store.cpp | |
parent | 1f612cbc076d5bb0251b6bd46b1906f0a8bfd98b (diff) |
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
Diffstat (limited to 'lib/Analysis/Store.cpp')
-rw-r--r-- | lib/Analysis/Store.cpp | 4 |
1 files 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); } |