Skip to content

Commit 4953262

Browse files
author
Greg Parker
authored
Fix a build warning. (swiftlang#13985)
"specified comparator type does not provide a const call operator"
1 parent 6ac167d commit 4953262

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/PrintAsObjC/PrintAsObjC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2062,7 +2062,7 @@ using SmallSetVector =
20622062
template <typename T>
20632063
struct PointerLikeComparator {
20642064
using Traits = llvm::PointerLikeTypeTraits<T>;
2065-
bool operator()(T lhs, T rhs) {
2065+
bool operator()(T lhs, T rhs) const {
20662066
return std::less<void*>()(Traits::getAsVoidPointer(lhs),
20672067
Traits::getAsVoidPointer(rhs));
20682068
}

0 commit comments

Comments
 (0)