[llvm] [Support] Add assert for DataBytes in calculateReflectedCRC32 (PR #228688)
Jared Wyles via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 3 03:36:13 PDT 2026
================
@@ -33,6 +34,9 @@ LLVM_ABI uint32_t crc32(uint32_t CRC, ArrayRef<uint8_t> Data);
constexpr inline uint32_t calculateReflectedCRC32(uint32_t Crc, uint64_t Data,
unsigned DataBytes,
uint32_t Poly) {
+ assert(
----------------
jaredwy wrote:
Maybe a static assert if its a constexpr function?
https://github.com/llvm/llvm-project/pull/228688
More information about the llvm-commits
mailing list