From: Ted Kremenek Date: Tue, 1 Jul 2008 00:01:02 +0000 (+0000) Subject: Temporarily treat "Autorelease" as "StopTracking". This is the original behavior. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80d753fd312b35d2cddddacd156592b62b03770b;p=clang Temporarily treat "Autorelease" as "StopTracking". This is the original behavior. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52940 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index 60a1a6a9c9..1cece43aa0 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/lib/Analysis/CFRefCount.cpp @@ -1818,7 +1818,6 @@ CFRefCount::RefBindings CFRefCount::Update(RefBindings B, SymbolID sym, default: assert (false && "Unhandled CFRef transition."); - case Autorelease: case MayEscape: if (V.getKind() == RefVal::Owned) { V = V ^ RefVal::NotOwned; @@ -1836,6 +1835,7 @@ CFRefCount::RefBindings CFRefCount::Update(RefBindings B, SymbolID sym, return B; + case Autorelease: case StopTracking: return RefBFactory.Remove(B, sym);