diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-09-14 10:30:44 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-09-14 10:30:44 +0000 |
commit | 01f85f02a426617e095143f1ac2c19c2e59ee76d (patch) | |
tree | 61330827471fe33e41a004f8f289d437e5d829dc | |
parent | ad41dcfd875e8d3421a5f0970b6a886b6e10b3b7 (diff) |
Rely on the recursive check for pointer types rather than adding an
explicit check before recursing. A simplification requested by Duncan
during review.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163896 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/SROA.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/SROA.cpp b/lib/Transforms/Scalar/SROA.cpp index 27808ea8c8..a0fcf21231 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); |