aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2022-07-26 10:44:00 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2022-07-26 10:44:00 +0100
commitda2ed951ec18ddbab8651d68c7873fe03006d442 (patch)
tree75d8940c83d7430c5f0e88e842da3f6c8e288d88
parentbc4eef509b21e5ba72dcf18f949eae27087a7b9c (diff)
downloadllvm-da2ed951ec18ddbab8651d68c7873fe03006d442.zip
llvm-da2ed951ec18ddbab8651d68c7873fe03006d442.tar.gz
llvm-da2ed951ec18ddbab8651d68c7873fe03006d442.tar.bz2
Fix MSVC "not all control paths return a value" warning. NFC
-rw-r--r--llvm/utils/TableGen/DXILEmitter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/DXILEmitter.cpp b/llvm/utils/TableGen/DXILEmitter.cpp
index 2c92912..cd41fba 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) {