diff options
-rw-r--r-- | include/llvm/ADT/PointerIntPair.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/PointerIntPair.h b/include/llvm/ADT/PointerIntPair.h index 955dd40c68..d2d7ff168f 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<intptr_t>(getPointer()) | (intptr_t)Int; + Value = reinterpret_cast<intptr_t>(getPointer()) | (intptr_t)Int; } void *getOpaqueValue() const { return reinterpret_cast<void*>(Value); } |