Fix MSVC "switch statement contains 'default' but no 'case' labels" warning. NFCI.

This commit is contained in:
Simon Pilgrim 2019-10-24 13:39:56 -07:00
parent 126a72fcbf
commit c39ba0429c
1 changed files with 4 additions and 7 deletions

View File

@ -1154,13 +1154,10 @@ bool LazyValueInfoImpl::solveBlockValueIntrinsic(ValueLatticeElement &BBLV,
if (auto *SI = dyn_cast<SaturatingInst>(II))
return solveBlockValueSaturatingIntrinsic(BBLV, SI, BB);
switch (II->getIntrinsicID()) {
default:
LLVM_DEBUG(dbgs() << " compute BB '" << BB->getName()
<< "' - overdefined (unknown intrinsic).\n");
BBLV = ValueLatticeElement::getOverdefined();
return true;
}
LLVM_DEBUG(dbgs() << " compute BB '" << BB->getName()
<< "' - overdefined (unknown intrinsic).\n");
BBLV = ValueLatticeElement::getOverdefined();
return true;
}
bool LazyValueInfoImpl::solveBlockValueExtractValue(