diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-02-25 23:11:49 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-02-25 23:11:49 +0000 |
commit | 3579073233f33b272cb85b7550a962acb7e512f5 (patch) | |
tree | c07504b3bcd263bed41641f02c4353cc438155fd /lib/Analysis/CFRefCount.cpp | |
parent | 3965b7be250de002d8744331631b9901941666a0 (diff) |
Fix recently introduced switch case fallthrough bug.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65485 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | lib/Analysis/CFRefCount.cpp | 8 |
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: |