summaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/EquivalenceClasses.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/ADT/EquivalenceClasses.h')
-rw-r--r--include/llvm/ADT/EquivalenceClasses.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/EquivalenceClasses.h b/include/llvm/ADT/EquivalenceClasses.h
index 91a1429..07a5edf 100644
--- a/include/llvm/ADT/EquivalenceClasses.h
+++ b/include/llvm/ADT/EquivalenceClasses.h
@@ -169,7 +169,7 @@ public:
/// getOrInsertLeaderValue - Return the leader for the specified value that is
/// in the set. If the member is not in the set, it is inserted, then
/// returned.
- const ElemTy &getOrInsertLeaderValue(const ElemTy &V) const {
+ const ElemTy &getOrInsertLeaderValue(const ElemTy &V) {
member_iterator MI = findLeader(insert(V));
assert(MI != member_end() && "Value is not in the set!");
return *MI;
OpenPOWER on IntegriCloud