Index: llvm/include/llvm/ADT/DenseMap.h =================================================================== --- llvm/include/llvm/ADT/DenseMap.h +++ llvm/include/llvm/ADT/DenseMap.h @@ -742,6 +742,8 @@ // simplicity of referring to them. typedef DenseMapBase BaseT; friend class DenseMapBase; + static_assert(isPowerOf2_64(InlineBuckets), + "InlineBuckets must be a power of 2."); unsigned Small : 1; unsigned NumEntries : 31;