summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/PointerIntPair.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-28 23:36:15 +0000
committerChris Lattner <sabre@nondot.org>2008-11-28 23:36:15 +0000
commit762ac83271ec442d2aea76d1ea9983bfefb22bba (patch)
tree881114cbb76846911210d903fc9176f61570d4ab /include/llvm/ADT/PointerIntPair.h
parent34b763694e74ee16e68fd85488bfe0443c51170d (diff)
downloadllvm-762ac83271ec442d2aea76d1ea9983bfefb22bba.tar.gz
llvm-762ac83271ec442d2aea76d1ea9983bfefb22bba.tar.bz2
llvm-762ac83271ec442d2aea76d1ea9983bfefb22bba.tar.xz
fix a bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60225 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/PointerIntPair.h')
-rw-r--r--include/llvm/ADT/PointerIntPair.h2
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); }