Skip to content

Commit 2ce233b

Browse files
committed
[gardening] Make count on BlotSetVector const.
Just discovered this as I working on other code.
1 parent 801337e commit 2ce233b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/Basic/BlotSetVector.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class BlotSetVector {
113113
return {index, true};
114114
}
115115

116-
bool count(const ValueT &value) { return map.count(value); }
116+
bool count(const ValueT &value) const { return map.count(value); }
117117

118118
/// Replace \p value1 with \p value2 placing \p value2 into the position in
119119
/// the array where value1 used to be. If \p value2 is already in the set,

0 commit comments

Comments
 (0)