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)) if (auto *SI = dyn_cast<SaturatingInst>(II))
return solveBlockValueSaturatingIntrinsic(BBLV, SI, BB); return solveBlockValueSaturatingIntrinsic(BBLV, SI, BB);
switch (II->getIntrinsicID()) { LLVM_DEBUG(dbgs() << " compute BB '" << BB->getName()
default: << "' - overdefined (unknown intrinsic).\n");
LLVM_DEBUG(dbgs() << " compute BB '" << BB->getName() BBLV = ValueLatticeElement::getOverdefined();
<< "' - overdefined (unknown intrinsic).\n"); return true;
BBLV = ValueLatticeElement::getOverdefined();
return true;
}
} }
bool LazyValueInfoImpl::solveBlockValueExtractValue( bool LazyValueInfoImpl::solveBlockValueExtractValue(