diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-02-05 22:34:53 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-02-05 22:34:53 +0000 |
commit | a92206ea578983f86fbf1246702955a10056dff8 (patch) | |
tree | 2a5b0a356fc5b1355785e5af994262f0a94c9db5 /lib/Analysis/CFRefCount.cpp | |
parent | 0e81f4b58d4e9767efbca7f3e856dcbc2192b1b5 (diff) |
Add 'AppendValue' to the list of magic CF function names that cause a tracked object to escape. Fixes <rdar://problem/6560661>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63891 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 8ed6bb285c..ee17a57e9f 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/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); |