[llvm] [Support] Add assert for DataBytes in calculateReflectedCRC32 (PR #228688)
Jared Wyles via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 3 04:01:59 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:
Oh yeah would need to re-structure things, sorry thought it was all passing literals. All good with assert then.
https://github.com/llvm/llvm-project/pull/228688
More information about the llvm-commits
mailing list