projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e81d2da
)
Remove an unnecessary predicate.
author
Reid Spencer
<rspencer@reidspencer.com>
Fri, 16 Feb 2007 22:42:40 +0000
(22:42 +0000)
committer
Reid 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
patch
|
blob
|
history
diff --git
a/lib/Target/TargetData.cpp
b/lib/Target/TargetData.cpp
index 3be2f11e196ed3588dda8c50f10be3f3cef6ab4c..b53ac562379dd5b5098a5ef9ded2a2fe90ad8c5f 100644
(file)
--- 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.