fix a bug.
authorChris Lattner <sabre@nondot.org>
Fri, 28 Nov 2008 23:36:15 +0000 (23:36 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 28 Nov 2008 23:36:15 +0000 (23:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60225 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/PointerIntPair.h

index 955dd40c68e18347ea4230c3cf872a14718e6bf5..d2d7ff168f8dafa41fa4c6f2832ef416c0063117 100644 (file)
@@ -51,7 +51,7 @@ public:
   
   void setInt(IntType Int) {
     assert(Int < (1 << IntBits) && "Integer too large for field");
-    Value |= reinterpret_cast<intptr_t>(getPointer()) | (intptr_t)Int;
+    Value = reinterpret_cast<intptr_t>(getPointer()) | (intptr_t)Int;
   }
   
   void *getOpaqueValue() const { return reinterpret_cast<void*>(Value); }