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