diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-30 20:17:27 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-30 20:17:27 +0000 |
commit | 20d8006e93694160ac4b9e0f0f25a093cb34c20f (patch) | |
tree | c25248d72d86ebc862c9e4de6a4e24524087bb4f /clang/lib/Analysis/CFRefCount.cpp | |
parent | 0940b99e3bad4eb733d748571fe5682c50bcdb80 (diff) | |
download | bcm5719-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.cpp | 3 |
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(); |