summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-02-05 22:34:53 +0000
committerTed Kremenek <kremenek@apple.com>2009-02-05 22:34:53 +0000
commit0ca23d3f730ad116ff0d151ec414f9a4caebea20 (patch)
tree40e00113d8efc9a1e40b303fea3b66f65dce51c1 /clang/lib/Analysis
parent2599084ac5f7862818125d67fb4be6586d081cbd (diff)
downloadbcm5719-llvm-0ca23d3f730ad116ff0d151ec414f9a4caebea20.tar.gz
bcm5719-llvm-0ca23d3f730ad116ff0d151ec414f9a4caebea20.zip
Add 'AppendValue' to the list of magic CF function names that cause a tracked object to escape. Fixes <rdar://problem/6560661>.
llvm-svn: 63891
Diffstat (limited to 'clang/lib/Analysis')
-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 8ed6bb285c0..ee17a57e9fb 100644
--- a/clang/lib/Analysis/CFRefCount.cpp
+++ b/clang/lib/Analysis/CFRefCount.cpp
@@ -826,7 +826,8 @@ RetainSummary* RetainSummaryManager::getSummary(FunctionDecl* FD) {
//
ArgEffect E = (CStrInCStrNoCase(FName, "InsertValue") ||
CStrInCStrNoCase(FName, "AddValue") ||
- CStrInCStrNoCase(FName, "SetValue"))
+ CStrInCStrNoCase(FName, "SetValue") ||
+ CStrInCStrNoCase(FName, "AppendValue"))
? MayEscape : DoNothing;
S = getPersistentSummary(RetEffect::MakeNoRet(), DoNothing, E);
OpenPOWER on IntegriCloud