summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetData.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-02-16 22:42:40 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-02-16 22:42:40 +0000
commite4ff249d26d7ce3a69d08bbf00120dd770561e8a (patch)
tree2f7b850ff0199530528fc0bcb2ca4a89f7ba3793 /llvm/lib/Target/TargetData.cpp
parent1d0721209dab31c097db14e11704067467fc11b7 (diff)
downloadbcm5719-llvm-e4ff249d26d7ce3a69d08bbf00120dd770561e8a.tar.gz
bcm5719-llvm-e4ff249d26d7ce3a69d08bbf00120dd770561e8a.zip
Remove an unnecessary predicate.
Patch by Scott Michel. llvm-svn: 34354
Diffstat (limited to 'llvm/lib/Target/TargetData.cpp')
-rw-r--r--llvm/lib/Target/TargetData.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetData.cpp b/llvm/lib/Target/TargetData.cpp
index 3be2f11e196..b53ac562379 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<StructType>(Ty)->isPacked() && abi_or_pref)
+ if (cast<StructType>(Ty)->isPacked())
return 1;
// Get the layout annotation... which is lazily created on demand.
OpenPOWER on IntegriCloud