Two fixes for the copy ctor/operator=:
authorChris Lattner <sabre@nondot.org>
Sat, 19 Mar 2005 21:02:12 +0000 (21:02 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 19 Mar 2005 21:02:12 +0000 (21:02 +0000)
commit1f377fefb745002a7aacb1ec87a4beb7bd87856e
tree5534e8cfa54ba98782a512dd88e8c189887c79c2
parent67823970461ba101fbb3704b016182e19bc5e2df
Two fixes for the copy ctor/operator=:
  1. Make sure to clear() 'this' before adding elements to it
  2. Make sure that the leaders of the RHS EC are the leaders of the LHS EC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20692 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/EquivalenceClasses.h