mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-27 13:42:24 +00:00
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
This commit is contained in:
parent
e81d2dad2c
commit
52dc96842e
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user