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:
9f1e12a
)
Handle a compiler warning.
author
Duncan Sands
<baldrick@free.fr>
Tue, 9 Dec 2008 09:58:11 +0000
(09:58 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Tue, 9 Dec 2008 09:58:11 +0000
(09:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60755
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 8ef50a8cee94b506acafdab3366ad0eb874604e0..859b9ce52efce824f8524a727aa1f77d7ba60c97 100644
(file)
--- a/
lib/Target/TargetData.cpp
+++ b/
lib/Target/TargetData.cpp
@@
-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.