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 | bb5a62d46e584d58739c4c388cce770f32c204bd (patch) | |
tree | ba2173edb23d89d0389704c353363660431d640e /clang/lib/Analysis/Store.cpp | |
parent | f1f1743b2efecfc049dd54cb4d97be8761b12ca0 (diff) | |
download | bcm5719-llvm-bb5a62d46e584d58739c4c388cce770f32c204bd.tar.gz bcm5719-llvm-bb5a62d46e584d58739c4c388cce770f32c204bd.zip |
NewCastRegion: Handle casts to any Objective-C pointer, not just qualified ids.
llvm-svn: 74874
Diffstat (limited to 'clang/lib/Analysis/Store.cpp')
-rw-r--r-- | clang/lib/Analysis/Store.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Analysis/Store.cpp b/clang/lib/Analysis/Store.cpp index 3f2a10cf359..49b37fa3520 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); } |