diff options
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/VMCore/Type.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/Type.cpp b/llvm/lib/VMCore/Type.cpp index 48fbb50f339..0496986ba0e 100644 --- a/llvm/lib/VMCore/Type.cpp +++ b/llvm/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... |

