projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
white space cleanups
[oota-llvm.git]
/
lib
/
Support
/
StringMap.cpp
diff --git
a/lib/Support/StringMap.cpp
b/lib/Support/StringMap.cpp
index f193aa42a447a02d74ee612fef1cdc8ecfe46fb2..a1ac512fa244cfb115952384d1fa1c1dfa0e1d11 100644
(file)
--- a/
lib/Support/StringMap.cpp
+++ b/
lib/Support/StringMap.cpp
@@
-169,6
+169,8
@@
StringMapEntryBase *StringMapImpl::RemoveKey(StringRef Key) {
TheTable[Bucket].Item = getTombstoneVal();
--NumItems;
++NumTombstones;
+ assert(NumItems + NumTombstones <= NumBuckets);
+
return Result;
}
@@
-224,4
+226,5
@@
void StringMapImpl::RehashTable() {
TheTable = NewTableArray;
NumBuckets = NewSize;
+ NumTombstones = 0;
}