Skip to content

Commit 8becaf8

Browse files
Address a comment.
1 parent eb806f1 commit 8becaf8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/include/llvm/ADT/EquivalenceClasses.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,9 @@ template <class ElemTy> class EquivalenceClasses {
256256
}
257257
if (!Next) {
258258
// 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.
259+
// successor of the current element's predecessor to null while
260+
// preserving the leader bit, and set the 'Leader' field of the class
261+
// leader to the predecessor element.
261262
Pre->Next = reinterpret_cast<const ECValue *>(
262263
static_cast<intptr_t>(Pre->isLeader()));
263264
Leader->Leader = Pre;

0 commit comments

Comments
 (0)