Silence VC++ warning about mixing intptr_t and bool, and about unused variable isL.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20697 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jeff Cohen 2005-03-19 22:36:39 +00:00
parent f4f6227989
commit 2413a68d2d

View 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),