diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-03-19 22:36:39 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-03-19 22:36:39 +0000 |
commit | 2413a68d2db9f4abc813775ff5c43e25b73dd8cc (patch) | |
tree | 604cfbfa52b07a20533b1749639b29d1c1dcbbef | |
parent | f4f62279892c3be475c2a94267f2863de87cfb40 (diff) |
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
-rw-r--r-- | include/llvm/ADT/EquivalenceClasses.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/EquivalenceClasses.h b/include/llvm/ADT/EquivalenceClasses.h index f1882fb046..2ca78e4f1a 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), |