From 762ac83271ec442d2aea76d1ea9983bfefb22bba Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 28 Nov 2008 23:36:15 +0000 Subject: [PATCH] fix a bug. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60225 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/PointerIntPair.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/ADT/PointerIntPair.h b/include/llvm/ADT/PointerIntPair.h index 955dd40c68e..d2d7ff168f8 100644 --- a/include/llvm/ADT/PointerIntPair.h +++ b/include/llvm/ADT/PointerIntPair.h @@ -51,7 +51,7 @@ public: void setInt(IntType Int) { assert(Int < (1 << IntBits) && "Integer too large for field"); - Value |= reinterpret_cast(getPointer()) | (intptr_t)Int; + Value = reinterpret_cast(getPointer()) | (intptr_t)Int; } void *getOpaqueValue() const { return reinterpret_cast(Value); }