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

llvm-svn: 5858
This commit is contained in:
Chris Lattner 2003-04-22 22:00:27 +00:00
parent 79dfcac6d1
commit 4183b34d39
1 changed files with 0 additions and 1 deletions

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.