Fix bug: BasicAA/2003-04-22-GEPProblem.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5858 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-04-22 22:00:27 +00:00
parent 63a6e77485
commit b581148bd9

View File

@ -145,7 +145,6 @@ BasicAliasAnalysis::alias(const Value *V1, unsigned V1Size,
if (V1Size != ~0U && V2Size != ~0U)
if (const GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(V1)) {
AliasResult R = alias(GEP->getOperand(0), V1Size, V2, V2Size);
if (R == NoAlias) return NoAlias;
if (R == MustAlias) {
// If there is at least one non-zero constant index, we know they cannot
// alias.