[clang] 0674f2e - [NFC] Fix warning on no return after switch.
Xiang Li via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 17 15:52:53 PDT 2022
Author: Xiang Li
Date: 2022-10-17T15:52:23-07:00
New Revision: 0674f2ec96422131abde0c042fbf2c11267db210
URL: https://github.com/llvm/llvm-project/commit/0674f2ec96422131abde0c042fbf2c11267db210
DIFF: https://github.com/llvm/llvm-project/commit/0674f2ec96422131abde0c042fbf2c11267db210.diff
LOG: [NFC] Fix warning on no return after switch.
Added:
Modified:
clang/lib/CodeGen/CGHLSLRuntime.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/CGHLSLRuntime.cpp b/clang/lib/CodeGen/CGHLSLRuntime.cpp
index 7a80dedb8133..6f32136b49de 100644
--- a/clang/lib/CodeGen/CGHLSLRuntime.cpp
+++ b/clang/lib/CodeGen/CGHLSLRuntime.cpp
@@ -270,6 +270,7 @@ castResourceShapeToResourceKind(HLSLResourceAttr::ResourceKind RK) {
static_cast<uint32_t>(
HLSLResourceAttr::ResourceKind::FeedbackTexture2DArray) ==
(static_cast<uint32_t>(llvm::hlsl::ResourceKind::NumEntries) - 2));
+ return llvm::hlsl::ResourceKind::Invalid;
}
void CGHLSLRuntime::annotateHLSLResource(const VarDecl *D, GlobalVariable *GV) {
More information about the cfe-commits
mailing list