forked from OSchip/llvm-project
[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.
This commit is contained in:
parent
b3a6d096d7
commit
96f937746e
|
@ -1137,7 +1137,7 @@ public:
|
|||
|
||||
/// overlaps(a, b) - Return true if the intervals in this map overlap with the
|
||||
/// interval [a;b].
|
||||
bool overlaps(KeyT a, KeyT b) {
|
||||
bool overlaps(KeyT a, KeyT b) const {
|
||||
assert(Traits::nonEmpty(a, b));
|
||||
const_iterator I = find(a);
|
||||
if (!I.valid())
|
||||
|
|
Loading…
Reference in New Issue