Silence VC++ warning about mixing intptr_t and bool, and about unused variable isL.
authorJeff Cohen <jeffc@jolt-lang.org>
Sat, 19 Mar 2005 22:36:39 +0000 (22:36 +0000)
committerJeff Cohen <jeffc@jolt-lang.org>
Sat, 19 Mar 2005 22:36:39 +0000 (22:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20697 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/EquivalenceClasses.h

index f1882fb046d881f4943b954168b8b0205b6bf68b..2ca78e4f1a7ddd44ecc38d9ba59dc6036973c840 100644 (file)
@@ -85,7 +85,7 @@ class EquivalenceClasses {
     void setNext(const ECValue *NewNext) const {
       assert(getNext() == 0 && "Already has a next pointer!");
       bool isL = isLeader();
-      Next = (const ECValue*)((intptr_t)NewNext | isLeader());
+      Next = (const ECValue*)((intptr_t)NewNext | (intptr_t)isL);
     }
   public:
     ECValue(const ECValue &RHS) : Leader(this), Next((ECValue*)(intptr_t)1),