diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-02-16 22:42:40 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-02-16 22:42:40 +0000 |
commit | 52dc96842efa6f722f5b55540e235828699e0326 (patch) | |
tree | 8a1abc33f4af5c6a2f3cea4635852263ccec475c /lib/Target/TargetData.cpp | |
parent | e81d2dad2c54014d36c73573307db5852c5caf8e (diff) |
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
Diffstat (limited to 'lib/Target/TargetData.cpp')
-rw-r--r-- | lib/Target/TargetData.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp index 3be2f11e19..b53ac56237 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<StructType>(Ty)->isPacked() && abi_or_pref) + if (cast<StructType>(Ty)->isPacked()) return 1; // Get the layout annotation... which is lazily created on demand. |