mirror of
https://github.com/RPCSX/llvm.git
synced 2025-04-18 08:00:02 +00:00
[BasicAA] Update on r259290 - added missing cast
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259298 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
084a86c382
commit
8326b169bc
@ -327,7 +327,7 @@ static bool isObjectSize(const Value *V, uint64_t Size, const DataLayout &DL,
|
||||
static int64_t adjustToPointerSize(int64_t Offset, unsigned PointerSize) {
|
||||
assert(PointerSize <= 64 && "Invalid PointerSize!");
|
||||
unsigned ShiftBits = 64 - PointerSize;
|
||||
return (uint64_t)Offset << ShiftBits >> ShiftBits;
|
||||
return (int64_t)((uint64_t)Offset << ShiftBits) >> ShiftBits;
|
||||
}
|
||||
|
||||
/// If V is a symbolic pointer expression, decompose it into a base pointer
|
||||
|
Loading…
x
Reference in New Issue
Block a user