[clang] [HLSL][Sema] Validate that occupied register numbers never exceed UINT32_MAX (PR #174028)
Damyan Pepper via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 30 14:50:41 PST 2025
================
@@ -2361,6 +2361,99 @@ static bool DiagnoseHLSLRegisterAttribute(Sema &S, SourceLocation &ArgLoc,
return ValidateMultipleRegisterAnnotations(S, D, RegType);
}
+bool ExceedsUInt32Max(llvm::StringRef S) {
----------------
damyanp wrote:
```suggestion
static bool ExceedsUInt32Max(llvm::StringRef S) {
```
(repeated for all the new functions)
https://github.com/llvm/llvm-project/pull/174028
More information about the cfe-commits
mailing list