diff options
-rw-r--r-- | llvm/utils/TableGen/X86FoldTablesEmitter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/X86FoldTablesEmitter.cpp b/llvm/utils/TableGen/X86FoldTablesEmitter.cpp index 8d72c8178dc..b8a2c99e18d 100644 --- a/llvm/utils/TableGen/X86FoldTablesEmitter.cpp +++ b/llvm/utils/TableGen/X86FoldTablesEmitter.cpp @@ -241,7 +241,8 @@ static bool hasPtrTailcallRegClass(const CodeGenInstruction *Inst) { // Calculates the integer value representing the BitsInit object static inline uint64_t getValueFromBitsInit(const BitsInit *B) { - assert(B->getNumBits() <= sizeof(uint64_t) * 8 && "BitInits' too long!"); + assert(B->getNumBits() <= sizeof(uint64_t) * CHAR_BIT && + "BitInits' too long!"); uint64_t Value = 0; for (unsigned i = 0, e = B->getNumBits(); i != e; ++i) { |