summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-06-15 20:58:58 +0000
committerTed Kremenek <kremenek@apple.com>2009-06-15 20:58:58 +0000
commit96aa146d90b66dbe13a30ccd87bab5deb7fc228a (patch)
tree272ede847e80c1127adc5f46443adaa663cd64e4
parenteba57e41b3289e59d60f12089afd5c87049658f2 (diff)
downloadbcm5719-llvm-96aa146d90b66dbe13a30ccd87bab5deb7fc228a.tar.gz
bcm5719-llvm-96aa146d90b66dbe13a30ccd87bab5deb7fc228a.zip
Fix: <rdar://problem/6945561> -[CIContext createCGLayerWithSize:info:] misinterpreted by clang scan-build
llvm-svn: 73415
-rw-r--r--clang/lib/Analysis/CFRefCount.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp
index 5bcd24d65ba..d1f6bc8b310 100644
--- a/clang/lib/Analysis/CFRefCount.cpp
+++ b/clang/lib/Analysis/CFRefCount.cpp
@@ -1539,11 +1539,14 @@ void RetainSummaryManager::InitializeMethodSummaries() {
addInstMethSummary("QCView", AllocSumm,
"createSnapshotImageOfType", NULL);
- // Create summaries for CIContext, 'createCGImage'.
+ // Create summaries for CIContext, 'createCGImage' and
+ // 'createCGLayerWithSize'.
addInstMethSummary("CIContext", AllocSumm,
"createCGImage", "fromRect", NULL);
addInstMethSummary("CIContext", AllocSumm,
- "createCGImage", "fromRect", "format", "colorSpace", NULL);
+ "createCGImage", "fromRect", "format", "colorSpace", NULL);
+ addInstMethSummary("CIContext", AllocSumm, "createCGLayerWithSize",
+ "info", NULL);
}
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud