summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CFRefCount.cpp
diff options
context:
space:
mode:
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