From: Ted Kremenek Date: Wed, 25 Feb 2009 23:11:49 +0000 (+0000) Subject: Fix recently introduced switch case fallthrough bug. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3579073233f33b272cb85b7550a962acb7e512f5;p=clang 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 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: