forked from OSchip/llvm-project
Fix Bug: BasicAA/2003-05-21-GEP-Problem.ll
llvm-svn: 6270
This commit is contained in:
parent
56280a1496
commit
060f38121e
|
@ -290,7 +290,7 @@ BasicAliasAnalysis::CheckGEPInstructions(GetElementPtrInst *GEP1, unsigned G1S,
|
|||
if (isa<Constant>(Op2))
|
||||
Indices2.push_back((Value*)Op2);
|
||||
else // Conservatively assume the minimum value for this index
|
||||
Indices2.push_back(Constant::getNullValue(Op1->getType()));
|
||||
Indices2.push_back(Constant::getNullValue(Op2->getType()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue