mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-13 08:35:46 +00:00
Simplify conditional and fix LICM/2004-11-17-UndefIndexCrash.ll
by saying what we mean git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17913 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2dee43d317
commit
bc2a99b480
@ -379,8 +379,7 @@ BasicAliasAnalysis::alias(const Value *V1, unsigned V1Size,
|
||||
// the arguments provided, except substitute 0's for any variable
|
||||
// indexes we find...
|
||||
for (unsigned i = 0; i != GEPOperands.size(); ++i)
|
||||
if (!isa<Constant>(GEPOperands[i]) || isa<GlobalValue>(GEPOperands[i]) ||
|
||||
isa<ConstantExpr>(GEPOperands[i]))
|
||||
if (!isa<ConstantInt>(GEPOperands[i]))
|
||||
GEPOperands[i] =Constant::getNullValue(GEPOperands[i]->getType());
|
||||
int64_t Offset = getTargetData().getIndexedOffset(BasePtr->getType(),
|
||||
GEPOperands);
|
||||
|
Loading…
x
Reference in New Issue
Block a user