diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp index 3be2f11e196..b53ac562379 100644 --- a/lib/Target/TargetData.cpp +++ b/lib/Target/TargetData.cpp @@ -458,7 +458,7 @@ unsigned char TargetData::getAlignment(const Type *Ty, bool abi_or_pref) const { case Type::StructTyID: { // Packed structure types always have an ABI alignment of one. - if (cast(Ty)->isPacked() && abi_or_pref) + if (cast(Ty)->isPacked()) return 1; // Get the layout annotation... which is lazily created on demand.