YAMLTraits.h: replace DenseMap that used a bad implementation of DenseMapInfo
[oota-llvm.git] / include / llvm / ADT / DenseMap.h
index d5aa8646b31c7628e5ace51b55dce723244e2a23..71069ff470d89f1b419a283a4de4db76f0f53a5f 100644 (file)
@@ -606,6 +606,9 @@ 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 {