[llvm-commits] [llvm] r60694 - /llvm/trunk/lib/Target/TargetData.cpp
Chris Lattner
sabre at nondot.org
Sun Dec 7 23:21:40 PST 2008
Author: lattner
Date: Mon Dec 8 01:21:39 2008
New Revision: 60694
URL: http://llvm.org/viewvc/llvm-project?rev=60694&view=rev
Log:
consistency
Modified:
llvm/trunk/lib/Target/TargetData.cpp
Modified: llvm/trunk/lib/Target/TargetData.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetData.cpp?rev=60694&r1=60693&r2=60694&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetData.cpp (original)
+++ llvm/trunk/lib/Target/TargetData.cpp Mon Dec 8 01:21:39 2008
@@ -51,7 +51,7 @@
unsigned TyAlign = ST->isPacked() ? 1 : TD.getABITypeAlignment(Ty);
// Add padding if necessary to align the data element properly.
- if (StructSize & TyAlign-1)
+ if ((StructSize & TyAlign-1) != 0)
StructSize = TargetData::RoundUpAlignment(StructSize, TyAlign);
// Keep track of maximum alignment constraint.
@@ -66,7 +66,7 @@
// Add padding to the end of the struct so that it could be put in an array
// and all array elements would be aligned correctly.
- if (StructSize & (StructAlignment-1) != 0)
+ if ((StructSize & (StructAlignment-1)) != 0)
StructSize = TargetData::RoundUpAlignment(StructSize, StructAlignment);
}
More information about the llvm-commits
mailing list