Fix omitted break statements in a switch.
authorDan Gohman <gohman@apple.com>
Mon, 12 Dec 2011 18:13:53 +0000 (18:13 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 12 Dec 2011 18:13:53 +0000 (18:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146380 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/ObjCARC.cpp

index 80f5f014c848260e5d87c14a7e707eaf84067e89..5444534cbfc97e72497c799e3579be38191eed15 100644 (file)
@@ -2255,6 +2255,7 @@ ObjCARCOpt::CheckForCFGHazards(const BasicBlock *BB,
       // guards against loops in the middle of a sequence.
       if (SomeSuccHasSame && !AllSuccsHaveSame)
         S.ClearSequenceProgress();
+      break;
     }
     case S_CanRelease: {
       const Value *Arg = I->first;
@@ -2289,6 +2290,7 @@ ObjCARCOpt::CheckForCFGHazards(const BasicBlock *BB,
       // guards against loops in the middle of a sequence.
       if (SomeSuccHasSame && !AllSuccsHaveSame)
         S.ClearSequenceProgress();
+      break;
     }
     }
 }