summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CFRefCount.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-04-30 20:01:29 +0000
committerTed Kremenek <kremenek@apple.com>2008-04-30 20:01:29 +0000
commit0940b99e3bad4eb733d748571fe5682c50bcdb80 (patch)
tree2f0a90c642210e8c79f6613c190a82fadf74f5df /clang/lib/Analysis/CFRefCount.cpp
parent5ce35cc51402b4c0114d0960165fe6b9d0e89ac9 (diff)
downloadbcm5719-llvm-0940b99e3bad4eb733d748571fe5682c50bcdb80.tar.gz
bcm5719-llvm-0940b99e3bad4eb733d748571fe5682c50bcdb80.zip
Teach the static analysis engine about ObjCQualifiedIdType.
llvm-svn: 50493
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r--clang/lib/Analysis/CFRefCount.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp
index 9ed4f1db293..08bad5b155f 100644
--- a/clang/lib/Analysis/CFRefCount.cpp
+++ b/clang/lib/Analysis/CFRefCount.cpp
@@ -335,8 +335,7 @@ CFRefSummaryManager::getUnaryCFSummary(FunctionTypeProto* FT, CFUnaryFunc func)
if (strcmp("CFTypeRef", TDName) != 0)
return NULL;
- if (!ArgT->isPointerType())
- return NULL;
+ assert (ArgT->isPointerType() || ArgT->isObjCQualifiedIdType());
QualType RetTy = FT->getResultType();
OpenPOWER on IntegriCloud