mirror of
https://github.com/RPCSX/llvm.git
synced 2025-05-13 10:56:01 +00:00
[BasicAA] NFC - revised comment for function adjustToPointerSize()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259300 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
86f53ba864
commit
729a217c15
@ -323,7 +323,7 @@ static bool isObjectSize(const Value *V, uint64_t Size, const DataLayout &DL,
|
||||
/// To ensure a pointer offset fits in an integer of size PointerSize
|
||||
/// (in bits) when that size is smaller than 64. This is an issue in
|
||||
/// particular for 32b programs with negative indices that rely on two's
|
||||
/// complement wrap-arounds for correct alias information.
|
||||
/// complement wrap-arounds for precise alias information.
|
||||
static int64_t adjustToPointerSize(int64_t Offset, unsigned PointerSize) {
|
||||
assert(PointerSize <= 64 && "Invalid PointerSize!");
|
||||
unsigned ShiftBits = 64 - PointerSize;
|
||||
|
Loading…
x
Reference in New Issue
Block a user