aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Analysis/Store.cpp4
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);
}