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 | e4ff249d26d7ce3a69d08bbf00120dd770561e8a (patch) | |
| tree | 2f7b850ff0199530528fc0bcb2ca4a89f7ba3793 /llvm/lib/Target/TargetData.cpp | |
| parent | 1d0721209dab31c097db14e11704067467fc11b7 (diff) | |
| download | bcm5719-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.cpp | 2 |
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. |

