1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

[BasicAA] NFC - revised comment for function adjustToPointerSize()

llvm-svn: 259300
This commit is contained in:
Gerolf Hoflehner 2016-01-30 05:58:38 +00:00
parent 48b45da969
commit 9e6bf2b7f2

View File

@ -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;