File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -179,9 +179,10 @@ class EquivalenceClasses {
179179 return member_iterator (nullptr );
180180 }
181181
182- // / Returns true if \p V is contained an equivalence class.
183- bool contains (const ElemTy &V) const {
184- return TheMapping.find (V) != TheMapping.end ();
182+ // / findValue - Return an iterator to the specified value. If it does not
183+ // / exist, end() is returned.
184+ iterator findValue (const ElemTy &V) const {
185+ return TheMapping.find (V);
185186 }
186187
187188 // / getLeaderValue - Return the leader for the specified value that is in the
Original file line number Diff line number Diff line change @@ -1230,7 +1230,7 @@ bool AccessAnalysis::canCheckPtrAtRT(
12301230 [this ](const Value *Ptr) {
12311231 MemAccessInfo AccessWrite (const_cast <Value *>(Ptr),
12321232 true );
1233- return ! DepCands.contains (AccessWrite);
1233+ return DepCands.findValue (AccessWrite) == DepCands. end ( );
12341234 })) &&
12351235 " Can only skip updating CanDoRT below, if all entries in AS "
12361236 " are reads or there is at most 1 entry" );
You can’t perform that action at this time.
0 commit comments