[cfe-commits] r65485 - /cfe/trunk/lib/Analysis/CFRefCount.cpp

Ted Kremenek kremenek at apple.com
Wed Feb 25 15:11:49 PST 2009


Author: kremenek
Date: Wed Feb 25 17:11:49 2009
New Revision: 65485

URL: http://llvm.org/viewvc/llvm-project?rev=65485&view=rev
Log:
Fix recently introduced switch case fallthrough bug.

Modified:
    cfe/trunk/lib/Analysis/CFRefCount.cpp

Modified: cfe/trunk/lib/Analysis/CFRefCount.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFRefCount.cpp?rev=65485&r1=65484&r2=65485&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/CFRefCount.cpp (original)
+++ cfe/trunk/lib/Analysis/CFRefCount.cpp Wed Feb 25 17:11:49 2009
@@ -2077,16 +2077,16 @@
     default:
       assert (false && "Unhandled CFRef transition.");
 
+    case NewAutoreleasePool:
+      assert(!isGCEnabled());
+      return state.add<AutoreleaseStack>(sym);
+      
     case MayEscape:
       if (V.getKind() == RefVal::Owned) {
         V = V ^ RefVal::NotOwned;
         break;
       }
       // Fall-through.
-
-    case NewAutoreleasePool:
-      assert(!isGCEnabled());
-      return state.add<AutoreleaseStack>(sym);
       
     case DoNothingByRef:
     case DoNothing:





More information about the cfe-commits mailing list