summaryrefslogtreecommitdiffstats
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
commit845d73167046288fffe12acd04859345ae78488f (patch)
tree0a1bf48352d4569c3fc5a649fe6f37c5c309ae87
parent7602e4bdbfbd3c825a07d3563bfd7c1966d1bbf0 (diff)
downloadbcm5719-llvm-845d73167046288fffe12acd04859345ae78488f.tar.gz
bcm5719-llvm-845d73167046288fffe12acd04859345ae78488f.zip
fix a bug.
llvm-svn: 60225
-rw-r--r--llvm/include/llvm/ADT/PointerIntPair.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/ADT/PointerIntPair.h b/llvm/include/llvm/ADT/PointerIntPair.h
index 955dd40c68e..d2d7ff168f8 100644
--- a/llvm/include/llvm/ADT/PointerIntPair.h
+++ b/llvm/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); }
OpenPOWER on IntegriCloud