aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/CFRefCount.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r--lib/Analysis/CFRefCount.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp
index 70d473b019..dbfe418da7 100644
--- a/lib/Analysis/CFRefCount.cpp
+++ b/lib/Analysis/CFRefCount.cpp
@@ -2077,16 +2077,16 @@ GRStateRef CFRefCount::Update(GRStateRef state, SymbolRef sym,
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: