[llvm] da2ed95 - Fix MSVC "not all control paths return a value" warning. NFC
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 26 02:44:28 PDT 2022
Author: Simon Pilgrim
Date: 2022-07-26T10:44:00+01:00
New Revision: da2ed951ec18ddbab8651d68c7873fe03006d442
URL: https://github.com/llvm/llvm-project/commit/da2ed951ec18ddbab8651d68c7873fe03006d442
DIFF: https://github.com/llvm/llvm-project/commit/da2ed951ec18ddbab8651d68c7873fe03006d442.diff
LOG: Fix MSVC "not all control paths return a value" warning. NFC
Added:
Modified:
llvm/utils/TableGen/DXILEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/DXILEmitter.cpp b/llvm/utils/TableGen/DXILEmitter.cpp
index 2c92912776ce..cd41fbaa6ca1 100644
--- a/llvm/utils/TableGen/DXILEmitter.cpp
+++ b/llvm/utils/TableGen/DXILEmitter.cpp
@@ -144,6 +144,7 @@ static std::string parameterKindToString(ParameterKind Kind) {
case ParameterKind::DXIL_HANDLE:
return "DXIL_HANDLE";
}
+ llvm_unreachable("Unknown llvm::DXIL::ParameterKind enum");
}
static void emitDXILOpEnum(DXILOperationData &DXILOp, raw_ostream &OS) {
More information about the llvm-commits
mailing list