diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-29 08:36:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-29 08:36:39 +0000 |
commit | b9cf75a15f6738be99a98f15cb6c2669f06d0ddf (patch) | |
tree | 6951f0974a0a205075c73cbb2be8c23c5eeb28af | |
parent | 3f7dba7b1738bd433a1dea0142e0844a106b782a (diff) |
apparently GCC doesn't believe that I understand C
precedence rules. Pacify it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60237 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ADT/PointerIntPair.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/PointerIntPair.h b/include/llvm/ADT/PointerIntPair.h index 773dea49c2..4c4bb7dd08 100644 --- a/include/llvm/ADT/PointerIntPair.h +++ b/include/llvm/ADT/PointerIntPair.h @@ -42,12 +42,12 @@ public: } IntType getInt() const { - return (IntType)(Value & (1 << IntBits)-1); + return (IntType)(Value & ((1 << IntBits)-1)); } void setPointer(PointerTy Ptr) { intptr_t PtrVal = reinterpret_cast<intptr_t>(Ptr); - assert((PtrVal & (1 << IntBits)-1) == 0 && + assert((PtrVal & ((1 << IntBits)-1)) == 0 && "Pointer is not sufficiently aligned"); Value = PtrVal | (intptr_t)getInt(); } |