Switch the SetVector::remove_if implementation to use partition which
[oota-llvm.git] / include / llvm / ADT / DenseMap.h
index f60d688c0dced2e815cfc4083147695f089e4562..cbcf7892c97004c01d0cd6263b1bd3ed9d16682c 100644 (file)
@@ -423,6 +423,7 @@ private:
       this->grow(NumBuckets);
       LookupBucketFor(Key, TheBucket);
     }
+    assert(TheBucket);
 
     // Only update the state after we've grown our bucket space appropriately
     // so that when growing buckets we have self-consistent entry count.