[clang] 93418b4 - HLSLResource.h - fix MSVC "not all control paths return a value" warning. NFC. (#179203)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 2 03:24:19 PST 2026
Author: Simon Pilgrim
Date: 2026-02-02T11:24:14Z
New Revision: 93418b45a302ffdbf2db885766d9ea850f3d52d3
URL: https://github.com/llvm/llvm-project/commit/93418b45a302ffdbf2db885766d9ea850f3d52d3
DIFF: https://github.com/llvm/llvm-project/commit/93418b45a302ffdbf2db885766d9ea850f3d52d3.diff
LOG: HLSLResource.h - fix MSVC "not all control paths return a value" warning. NFC. (#179203)
Added:
Modified:
clang/include/clang/AST/HLSLResource.h
Removed:
################################################################################
diff --git a/clang/include/clang/AST/HLSLResource.h b/clang/include/clang/AST/HLSLResource.h
index 071e59d72d983..aedb2cd5db6ba 100644
--- a/clang/include/clang/AST/HLSLResource.h
+++ b/clang/include/clang/AST/HLSLResource.h
@@ -106,6 +106,7 @@ inline uint32_t getResourceDimensions(llvm::dxil::ResourceDimension Dim) {
llvm_unreachable(
"We cannot get the dimension of a resource with unknown dimension.");
}
+ llvm_unreachable("Unhandled llvm::dxil::ResourceDimension enum.");
}
} // namespace hlsl
More information about the cfe-commits
mailing list