From 2413a68d2db9f4abc813775ff5c43e25b73dd8cc Mon Sep 17 00:00:00 2001 From: Jeff Cohen Date: Sat, 19 Mar 2005 22:36:39 +0000 Subject: [PATCH] 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 --- include/llvm/ADT/EquivalenceClasses.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),