forked from OSchip/llvm-project
Fix "not all control paths return a value" MSVC warning. NFCI.
This commit is contained in:
parent
fe6c45dd27
commit
be51737f59
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue