[clang] HLSLResource.h - fix MSVC "not all control paths return a value" warning. NFC. (PR #179203)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 2 02:52:51 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Simon Pilgrim (RKSimon)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/179203.diff
1 Files Affected:
- (modified) clang/include/clang/AST/HLSLResource.h (+1)
``````````diff
diff --git a/clang/include/clang/AST/HLSLResource.h b/clang/include/clang/AST/HLSLResource.h
index 071e59d72d983d..aedb2cd5db6ba2 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
``````````
</details>
https://github.com/llvm/llvm-project/pull/179203
More information about the cfe-commits
mailing list