From 3579073233f33b272cb85b7550a962acb7e512f5 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 25 Feb 2009 23:11:49 +0000 Subject: [PATCH] Fix recently introduced switch case fallthrough bug. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65485 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/CFRefCount.cpp | 8 ++++---- 1 file 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(sym); + case MayEscape: if (V.getKind() == RefVal::Owned) { V = V ^ RefVal::NotOwned; break; } // Fall-through. - - case NewAutoreleasePool: - assert(!isGCEnabled()); - return state.add(sym); case DoNothingByRef: case DoNothing: -- 2.40.0