Remove an unnecessary predicate.
authorReid Spencer <rspencer@reidspencer.com>
Fri, 16 Feb 2007 22:42:40 +0000 (22:42 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 16 Feb 2007 22:42:40 +0000 (22:42 +0000)
Patch by Scott Michel.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34354 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/TargetData.cpp

index 3be2f11e196ed3588dda8c50f10be3f3cef6ab4c..b53ac562379dd5b5098a5ef9ded2a2fe90ad8c5f 100644 (file)
@@ -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<StructType>(Ty)->isPacked() && abi_or_pref)
+    if (cast<StructType>(Ty)->isPacked())
       return 1;
     
     // Get the layout annotation... which is lazily created on demand.