mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
Handle a compiler warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60755 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9f1e12a2f2
commit
677a7ec489
@ -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…
x
Reference in New Issue
Block a user