llvm.org GIT mirror llvm / 831f8f8
Break seems serve better here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305150 91177308-0d34-0410-b5e6-96231b3b80d8 Galina Kistanova 2 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
381381 switch (Ran->Rand() % 2) {
382382 case 0: if (Ty->getScalarType()->isIntegerTy())
383383 return PT->push_back(ConstantVector::getAllOnesValue(Ty));
384 llvm_unreachable("Unexpected state");
384 break;
385385 case 1: if (Ty->getScalarType()->isIntegerTy())
386386 return PT->push_back(ConstantVector::getNullValue(Ty));
387387 }