[llvm] r305150 - Break seems serve better here.
Galina Kistanova via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 10 11:26:19 PDT 2017
Author: gkistanova
Date: Sat Jun 10 13:26:19 2017
New Revision: 305150
URL: http://llvm.org/viewvc/llvm-project?rev=305150&view=rev
Log:
Break seems serve better here.
Modified:
llvm/trunk/tools/llvm-stress/llvm-stress.cpp
Modified: llvm/trunk/tools/llvm-stress/llvm-stress.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-stress/llvm-stress.cpp?rev=305150&r1=305149&r2=305150&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-stress/llvm-stress.cpp (original)
+++ llvm/trunk/tools/llvm-stress/llvm-stress.cpp Sat Jun 10 13:26:19 2017
@@ -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));
}
More information about the llvm-commits
mailing list