mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-28 15:41:58 +00:00
apparently GCC doesn't believe that I understand C
precedence rules. Pacify it. llvm-svn: 60237
This commit is contained in:
parent
845f6467ba
commit
ce03bccd7e
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user