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:
750c425
)
Fix use-before-def thinko
author
Brian Gaeke
<gaeke@uiuc.edu>
Fri, 2 Jul 2004 07:01:31 +0000
(07:01 +0000)
committer
Brian Gaeke
<gaeke@uiuc.edu>
Fri, 2 Jul 2004 07:01:31 +0000
(07:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14570
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 59ef5accd8d96a9dcfb82f6f978c39d7cff9d487..a6379afee475ce1052dc7783c29355a3208733c1 100644
(file)
--- a/
lib/Target/TargetData.cpp
+++ b/
lib/Target/TargetData.cpp
@@
-169,8
+169,8
@@
static inline void getTypeInfo(const Type *Ty, const TargetData *TD,
return;
case Type::ArrayTyID: {
const ArrayType *ATy = cast<ArrayType>(Ty);
- unsigned AlignedSize = (Size + Alignment - 1)/Alignment*Alignment;
getTypeInfo(ATy->getElementType(), TD, Size, Alignment);
+ unsigned AlignedSize = (Size + Alignment - 1)/Alignment*Alignment;
Size = AlignedSize*ATy->getNumElements();
return;
}