forked from OSchip/llvm-project
NewCastRegion: Handle casts to any Objective-C pointer, not just qualified ids.
llvm-svn: 74874
This commit is contained in:
parent
f1f1743b2e
commit
bb5a62d46e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue