From: Dmitri Gribenko Date: Wed, 7 Aug 2013 07:12:08 +0000 (+0000) Subject: Remove the assertion for now. This breaks lld. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6e52c6164d499fac983f720540e9a8345f36f691;p=oota-llvm.git Remove the assertion for now. This breaks lld. lld has a hashtable with StringRef keys; it needs to iterate over the keys in *insertion* order. This is currently implemented as std::vector + DenseMap. This will probably need a proper DenseMapInfo if we don't want to lose memory/performance by migrating to a different data structure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187868 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/DenseMap.h b/include/llvm/ADT/DenseMap.h index 71069ff470d..d5aa8646b31 100644 --- a/include/llvm/ADT/DenseMap.h +++ b/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 {