[llvm-commits] [llvm] r60225 - /llvm/trunk/include/llvm/ADT/PointerIntPair.h

Chris Lattner sabre at nondot.org
Fri Nov 28 15:36:15 PST 2008


Author: lattner
Date: Fri Nov 28 17:36:15 2008
New Revision: 60225

URL: http://llvm.org/viewvc/llvm-project?rev=60225&view=rev
Log:
fix a bug.

Modified:
    llvm/trunk/include/llvm/ADT/PointerIntPair.h

Modified: llvm/trunk/include/llvm/ADT/PointerIntPair.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/PointerIntPair.h?rev=60225&r1=60224&r2=60225&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/PointerIntPair.h (original)
+++ llvm/trunk/include/llvm/ADT/PointerIntPair.h Fri Nov 28 17:36:15 2008
@@ -51,7 +51,7 @@
   
   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); }





More information about the llvm-commits mailing list