We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb806f1 commit 8becaf8Copy full SHA for 8becaf8
llvm/include/llvm/ADT/EquivalenceClasses.h
@@ -256,8 +256,9 @@ template <class ElemTy> class EquivalenceClasses {
256
}
257
if (!Next) {
258
// If the current element is the last element(not leader), set the
259
- // successor of the current element's predecessor to null, and set
260
- // the 'Leader' field of the class leader to the predecessor element.
+ // successor of the current element's predecessor to null while
+ // preserving the leader bit, and set the 'Leader' field of the class
261
+ // leader to the predecessor element.
262
Pre->Next = reinterpret_cast<const ECValue *>(
263
static_cast<intptr_t>(Pre->isLeader()));
264
Leader->Leader = Pre;
0 commit comments