[clang] [clang][NFC] Fix the static assertion in 4797437 (PR #120643)
Jon Roelofs via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 19 14:13:51 PST 2024
================
@@ -114,10 +114,9 @@ class alignas(void *) Stmt {
#define STMT(CLASS, PARENT)
#define STMT_RANGE(BASE, FIRST, LAST)
#define LAST_STMT_RANGE(BASE, FIRST, LAST) \
- static_assert( \
- llvm::isInt<NumStmtBits>(StmtClass::LAST##Class), \
- "The number of 'StmtClass'es is strictly bounded under two to " \
- "the power of 'NumStmtBits'");
+ static_assert(llvm::isUint<NumStmtBits>( \
----------------
jroelofs wrote:
```suggestion
static_assert(llvm::isUInt<NumStmtBits>( \
```
https://github.com/llvm/llvm-project/pull/120643
More information about the cfe-commits
mailing list