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
if (Offset > 0 || Size < ElementSize) {
if ((Offset + Size) > ElementSize)
return 0;
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);
return getTypePartition(TD, ElementTy, Offset, Size);
}
assert(Offset == 0);