From: Galina Kistanova Date: Sat, 10 Jun 2017 18:26:19 +0000 (+0000) Subject: Break seems serve better here. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=831f8f80c206c85b8ec27dafe021d848bb0bab45;p=llvm Break seems serve better here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305150 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-stress/llvm-stress.cpp b/tools/llvm-stress/llvm-stress.cpp index f1cdc5fa105..9696dec6d1a 100644 --- a/tools/llvm-stress/llvm-stress.cpp +++ b/tools/llvm-stress/llvm-stress.cpp @@ -382,7 +382,7 @@ struct ConstModifier: public Modifier { switch (Ran->Rand() % 2) { case 0: if (Ty->getScalarType()->isIntegerTy()) return PT->push_back(ConstantVector::getAllOnesValue(Ty)); - llvm_unreachable("Unexpected state"); + break; case 1: if (Ty->getScalarType()->isIntegerTy()) return PT->push_back(ConstantVector::getNullValue(Ty)); }