diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-05-11 18:30:24 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-05-11 18:30:24 +0000 |
commit | d0e3ab2196763f44d1ee1f381bc9d7e438e75ac1 (patch) | |
tree | 9146856d0bd8b22d23d549138bd3e1e2524b3c95 /clang/lib/Analysis/CFRefCount.cpp | |
parent | 9fea944f26e64fe3a2fbad7efee0b6cb0ea57dff (diff) | |
download | bcm5719-llvm-d0e3ab2196763f44d1ee1f381bc9d7e438e75ac1.tar.gz bcm5719-llvm-d0e3ab2196763f44d1ee1f381bc9d7e438e75ac1.zip |
Fix regression reported in <rdar://problem/6866843>. The analyzer should extend the lifetime of an object stored to a container.
llvm-svn: 71452
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | clang/lib/Analysis/CFRefCount.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index ebc4dcc6ff5..29a28c1a199 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/lib/Analysis/CFRefCount.cpp @@ -752,8 +752,8 @@ public: : RetEffect::MakeOwned(RetEffect::ObjC, true)), DefaultSummary(AF.GetEmptyMap() /* per-argument effects (none) */, RetEffect::MakeNoRet() /* return effect */, - DoNothing /* receiver effect */, - MayEscape /* default argument effect */), + MayEscape, /* default argument effect */ + DoNothing /* receiver effect */), StopSummary(0) { InitializeClassMethodSummaries(); |