[all-commits] [llvm/llvm-project] 399c3a: [clang][NFC] Fix the static assertion in 4797437 (...
Ziqing Luo via All-commits
all-commits at lists.llvm.org
Fri Dec 20 11:12:37 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 399c3a78a2577c6fc68bba7f301901a0e66e87ed
https://github.com/llvm/llvm-project/commit/399c3a78a2577c6fc68bba7f301901a0e66e87ed
Author: Ziqing Luo <ziqing at udel.edu>
Date: 2024-12-20 (Fri, 20 Dec 2024)
Changed paths:
M clang/include/clang/AST/Stmt.h
Log Message:
-----------
[clang][NFC] Fix the static assertion in 4797437 (#120643)
In the previous commit 4797437463e63ee289a1ff1904cfb7b2fe6cb4c2, I used
`llvm::isInt<NumStmtBits>(StmtClass::LAST##Class)` to test if
`StmtClass` is strictly bounded by the an unsigned integer of
'NumStmtBits'. That is incorrect as `llvm::isInt` tests for signed
integers. This commit fixes it.
(rdar://141555357)
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list