[llvm] 73f0981 - Fix MSVC "'GetVMSetForLMul': not all control paths return a value" warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 19 10:56:08 PDT 2023
Author: Simon Pilgrim
Date: 2023-07-19T18:55:37+01:00
New Revision: 73f09814ee8bbd9f06a54c169ce9370bdf0b11e9
URL: https://github.com/llvm/llvm-project/commit/73f09814ee8bbd9f06a54c169ce9370bdf0b11e9
DIFF: https://github.com/llvm/llvm-project/commit/73f09814ee8bbd9f06a54c169ce9370bdf0b11e9.diff
LOG: Fix MSVC "'GetVMSetForLMul': not all control paths return a value" warning. NFC.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp b/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
index d36492ac67809a..b9d24df3a65629 100644
--- a/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
@@ -3255,6 +3255,7 @@ static unsigned GetVMSetForLMul(RISCVII::VLMUL LMUL) {
case RISCVII::LMUL_RESERVED:
llvm_unreachable("Unexpected LMUL");
}
+ llvm_unreachable("Unknown VLMUL enum");
}
// Try to fold away VMERGE_VVM instructions. We handle these cases:
More information about the llvm-commits
mailing list