]> granicus.if.org Git - clang/commitdiff
Temporarily treat "Autorelease" as "StopTracking". This is the original behavior.
authorTed Kremenek <kremenek@apple.com>
Tue, 1 Jul 2008 00:01:02 +0000 (00:01 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 1 Jul 2008 00:01:02 +0000 (00:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52940 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFRefCount.cpp

index 60a1a6a9c92447db7492e5a1e12f273e9c66cd40..1cece43aa048e2534b2d7a83d2e631333ea86056 100644 (file)
@@ -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);