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 | c0c3f5dbc9e78aa53a86c7d5e3eeda23ddad93d6 (patch) | |
tree | 097bc258ddf308d6d5ae163c38da0ed666088c2c /lib/Analysis/CFRefCount.cpp | |
parent | 036dce063aab99fa606f102c872c5dcd138806b6 (diff) |
Teach more of the static analyzer about ObjCQualifiedIdType.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50494 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | lib/Analysis/CFRefCount.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index 08bad5b155..9ed4f1db29 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/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(); |