mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-19 01:27:40 +00:00
Handle a compiler warning.
llvm-svn: 60755
This commit is contained in:
parent
ff8be5564e
commit
392ed50974
@ -51,7 +51,7 @@ StructLayout::StructLayout(const StructType *ST, const TargetData &TD) {
|
||||
unsigned TyAlign = ST->isPacked() ? 1 : TD.getABITypeAlignment(Ty);
|
||||
|
||||
// Add padding if necessary to align the data element properly.
|
||||
if ((StructSize & TyAlign-1) != 0)
|
||||
if ((StructSize & (TyAlign-1)) != 0)
|
||||
StructSize = TargetData::RoundUpAlignment(StructSize, TyAlign);
|
||||
|
||||
// Keep track of maximum alignment constraint.
|
||||
|
Loading…
Reference in New Issue
Block a user