diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/Type.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index 48fbb50f33..0496986ba0 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -151,6 +151,9 @@ bool Type::isSizedDerivedType() const { if (const ArrayType *ATy = dyn_cast<ArrayType>(this)) return ATy->getElementType()->isSized(); + if (const PackedType *PTy = dyn_cast<PackedType>(this)) + return PTy->getElementType()->isSized(); + if (!isa<StructType>(this)) return false; // Okay, our struct is sized if all of the elements are... |