Skip to content

Commit 96f9377

Browse files
committed
[ADT] Mark IntervalMap::overlaps const
This allows the overlaps() predicate to be used on a const IntervalMap. Tested by building ADTTests, llc, and lldb-test.
1 parent b3a6d09 commit 96f9377

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/ADT/IntervalMap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ class IntervalMap {
11371137

11381138
/// overlaps(a, b) - Return true if the intervals in this map overlap with the
11391139
/// interval [a;b].
1140-
bool overlaps(KeyT a, KeyT b) {
1140+
bool overlaps(KeyT a, KeyT b) const {
11411141
assert(Traits::nonEmpty(a, b));
11421142
const_iterator I = find(a);
11431143
if (!I.valid())

0 commit comments

Comments
 (0)