[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:
Johannes Doerfert 2022-01-08 21:11:51 -06:00
parent 9ba25ec92d
commit 4e8a02e7f4
1 changed files with 0 additions and 1 deletions

View File

@ -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)) {