diff --git a/llvm/include/llvm/ADT/DenseMap.h b/llvm/include/llvm/ADT/DenseMap.h index 71069ff470d8..d5aa8646b31c 100644 --- a/llvm/include/llvm/ADT/DenseMap.h +++ b/llvm/include/llvm/ADT/DenseMap.h @@ -606,9 +606,6 @@ public: } void init(unsigned InitBuckets) { - assert(!KeyInfoT::isEqual(this->getEmptyKey(), this->getTombstoneKey()) && - "Bad implementation of KeyInfoT: empty key and tombstone key " - "should be different"); if (allocateBuckets(InitBuckets)) { this->BaseT::initEmpty(); } else {