// As we recursed through GEPs to get here, we've incrementally checked
// that each step advanced by a multiple of the alignment. If our base is
// properly aligned, then the original offset accessed must also be.
- Type *Ty = V->getType();
- assert(Ty->isSized() && "must be sized");
- APInt Offset(DL.getTypeStoreSizeInBits(Ty), 0);
+ APInt Offset(DL.getTypeStoreSizeInBits(V->getType()), 0);
return isAligned(V, Offset, Alignment, DL);
}
// checked that each step advanced by a multiple of the alignment. If
// our base is properly aligned, then the original offset accessed
// must also be.
- Type *Ty = V->getType();
- assert(Ty->isSized() && "must be sized");
- APInt Offset(DL.getTypeStoreSizeInBits(Ty), 0);
+ APInt Offset(DL.getTypeStoreSizeInBits(V->getType()), 0);
return isAligned(V, Offset, Alignment, DL);
}
}