forked from OSchip/llvm-project
[Attributor][FIX] Remove assumption that doesn't have to hold
There is no guarantee we strip all GEPOperators and the conservative handling doesn't even require us to.
This commit is contained in:
parent
9ba25ec92d
commit
4e8a02e7f4
|
@ -7702,7 +7702,6 @@ void AAMemoryLocationImpl::categorizePtrValue(
|
|||
for (Value *Obj : Objects) {
|
||||
// TODO: recognize the TBAA used for constant accesses.
|
||||
MemoryLocationsKind MLK = NO_LOCATIONS;
|
||||
assert(!isa<GEPOperator>(Obj) && "GEPs should have been stripped.");
|
||||
if (isa<UndefValue>(Obj))
|
||||
continue;
|
||||
if (isa<Argument>(Obj)) {
|
||||
|
|
Loading…
Reference in New Issue