From: Jeff Cohen Date: Sat, 19 Mar 2005 22:36:39 +0000 (+0000) Subject: Silence VC++ warning about mixing intptr_t and bool, and about unused variable isL. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2413a68d2db9f4abc813775ff5c43e25b73dd8cc;p=oota-llvm.git 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 --- diff --git a/include/llvm/ADT/EquivalenceClasses.h b/include/llvm/ADT/EquivalenceClasses.h index f1882fb046d..2ca78e4f1a7 100644 --- a/include/llvm/ADT/EquivalenceClasses.h +++ b/include/llvm/ADT/EquivalenceClasses.h @@ -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),