mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
IntegerType is a sized DerivedType too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33521 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3d10b0b2d3
commit
43276ee280
@ -139,6 +139,9 @@ unsigned Type::getPrimitiveSizeInBits() const {
|
||||
/// iff all of the members of the type are sized as well. Since asking for
|
||||
/// their size is relatively uncommon, move this operation out of line.
|
||||
bool Type::isSizedDerivedType() const {
|
||||
if (isa<IntegerType>(this))
|
||||
return true;
|
||||
|
||||
if (const ArrayType *ATy = dyn_cast<ArrayType>(this))
|
||||
return ATy->getElementType()->isSized();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user