mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
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
This commit is contained in:
parent
ad41dcfd87
commit
01f85f02a4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user