Fix "not all control paths return a value" MSVC warning. NFCI.

This commit is contained in:
Simon Pilgrim 2021-06-05 19:42:00 +01:00
parent fe6c45dd27
commit be51737f59
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ unsigned RISCVVType::encodeVTYPE(RISCVII::VLMUL VLMUL, unsigned SEW,
std::pair<unsigned, bool> RISCVVType::decodeVLMUL(RISCVII::VLMUL VLMUL) {
switch (VLMUL) {
case RISCVII::VLMUL::LMUL_RESERVED:
default:
llvm_unreachable("Unexpected LMUL value!");
case RISCVII::VLMUL::LMUL_1:
case RISCVII::VLMUL::LMUL_2: