Fix recently introduced switch case fallthrough bug.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65485 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp
index 70d473b..dbfe418 100644
--- a/lib/Analysis/CFRefCount.cpp
+++ b/lib/Analysis/CFRefCount.cpp
@@ -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: