diff --git a/lib/Transforms/Scalar/SROA.cpp b/lib/Transforms/Scalar/SROA.cpp index 27808ea8c8b..a0fcf212313 100644 --- a/lib/Transforms/Scalar/SROA.cpp +++ b/lib/Transforms/Scalar/SROA.cpp @@ -2368,9 +2368,6 @@ static Type *getTypePartition(const TargetData &TD, Type *Ty, if (Offset > 0 || Size < ElementSize) { if ((Offset + Size) > ElementSize) return 0; - // Bail if this is a poniter element, we can't recurse through them. - if (ElementTy->isPointerTy()) - return 0; return getTypePartition(TD, ElementTy, Offset, Size); } assert(Offset == 0);