summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-04-25 18:03:06 +0000
committerChris Lattner <sabre@nondot.org>2003-04-25 18:03:06 +0000
commitbe2d24e3b5a5fd39a6dc0bd9ef17f2ce255d4537 (patch)
tree383f8f7c3800cc905325c43635acb4375a807b39 /llvm/lib
parent25047dd9b984162eb43ed7aeff94efadb566ed81 (diff)
downloadbcm5719-llvm-be2d24e3b5a5fd39a6dc0bd9ef17f2ce255d4537.tar.gz
bcm5719-llvm-be2d24e3b5a5fd39a6dc0bd9ef17f2ce255d4537.zip
Fix BasicAA/2003-04-25-GEPCrash.ll
llvm-svn: 5940
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/BasicAliasAnalysis.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/BasicAliasAnalysis.cpp b/llvm/lib/Analysis/BasicAliasAnalysis.cpp
index f99ab800b23..4911c0d6937 100644
--- a/llvm/lib/Analysis/BasicAliasAnalysis.cpp
+++ b/llvm/lib/Analysis/BasicAliasAnalysis.cpp
@@ -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;
OpenPOWER on IntegriCloud