[llvm] [ADT] Fix a bug in EquivalenceClasses::erase (PR #161121)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 29 07:52:07 PDT 2025


================
@@ -258,7 +258,8 @@ template <class ElemTy> class EquivalenceClasses {
         // If the current element is the last element(not leader), set the
         // successor of the current element's predecessor to null, and set
----------------
kazutakahirata wrote:

I've inserted `while preserving the leader bit` there.  How does this sound?

https://github.com/llvm/llvm-project/pull/161121


More information about the llvm-commits mailing list