mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-01 01:54:21 +00:00
Fix BasicAA/2003-04-25-GEPCrash.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5940 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c938ba0c0d
commit
807b7055b2
@ -294,11 +294,11 @@ BasicAliasAnalysis::CheckGEPInstructions(GetElementPtrInst *GEP1, unsigned G1S,
|
||||
}
|
||||
}
|
||||
|
||||
int Offset1 = getTargetData().getIndexedOffset(GEPPointerTy, Indices1);
|
||||
int Offset2 = getTargetData().getIndexedOffset(GEPPointerTy, Indices2);
|
||||
int64_t Offset1 = getTargetData().getIndexedOffset(GEPPointerTy, Indices1);
|
||||
int64_t Offset2 = getTargetData().getIndexedOffset(GEPPointerTy, Indices2);
|
||||
assert(Offset1 < Offset2 &&"There is at least one different constant here!");
|
||||
|
||||
if ((unsigned)(Offset2-Offset1) >= SizeMax) {
|
||||
if ((uint64_t)(Offset2-Offset1) >= SizeMax) {
|
||||
//std::cerr << "Determined that these two GEP's don't alias ["
|
||||
// << SizeMax << " bytes]: \n" << *GEP1 << *GEP2;
|
||||
return NoAlias;
|
||||
|
Loading…
x
Reference in New Issue
Block a user