mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 21:50:40 +00:00
Mark comparator call operator as const
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290636 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8f45dd30a7
commit
10a1d173cc
@ -737,7 +737,7 @@ namespace {
|
||||
|
||||
struct AliasPriorityComparator {
|
||||
typedef std::pair<CodeGenInstAlias, int> ValueType;
|
||||
bool operator()(const ValueType &LHS, const ValueType &RHS) {
|
||||
bool operator()(const ValueType &LHS, const ValueType &RHS) const {
|
||||
if (LHS.second == RHS.second) {
|
||||
// We don't actually care about the order, but for consistency it
|
||||
// shouldn't depend on pointer comparisons.
|
||||
|
Loading…
Reference in New Issue
Block a user