From e4ff249d26d7ce3a69d08bbf00120dd770561e8a Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Fri, 16 Feb 2007 22:42:40 +0000 Subject: [PATCH] Remove an unnecessary predicate. Patch by Scott Michel. llvm-svn: 34354 --- llvm/lib/Target/TargetData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/TargetData.cpp b/llvm/lib/Target/TargetData.cpp index 3be2f11e196e..b53ac562379d 100644 --- a/llvm/lib/Target/TargetData.cpp +++ b/llvm/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.