From: Reid Spencer Date: Fri, 16 Feb 2007 22:42:40 +0000 (+0000) Subject: Remove an unnecessary predicate. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=52dc96842efa6f722f5b55540e235828699e0326;p=oota-llvm.git Remove an unnecessary predicate. Patch by Scott Michel. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34354 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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.