[llvm-commits] CVS: llvm/include/llvm/ADT/EquivalenceClasses.h
Jeff Cohen
jeffc at jolt-lang.org
Sat Mar 19 14:36:50 PST 2005
Changes in directory llvm/include/llvm/ADT:
EquivalenceClasses.h updated: 1.12 -> 1.13
---
Log message:
Silence VC++ warning about mixing intptr_t and bool, and about unused variable isL.
---
Diffs of the changes: (+1 -1)
EquivalenceClasses.h | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/include/llvm/ADT/EquivalenceClasses.h
diff -u llvm/include/llvm/ADT/EquivalenceClasses.h:1.12 llvm/include/llvm/ADT/EquivalenceClasses.h:1.13
--- llvm/include/llvm/ADT/EquivalenceClasses.h:1.12 Sat Mar 19 15:02:12 2005
+++ llvm/include/llvm/ADT/EquivalenceClasses.h Sat Mar 19 16:36:39 2005
@@ -85,7 +85,7 @@
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),
More information about the llvm-commits
mailing list