summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-07-02 07:01:31 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-07-02 07:01:31 +0000
commitf6d2471c5d82e6d89545c587ea52172c03555b28 (patch)
tree0a8ac12692b4a3a05305ea17ce772d11d7b5d9c3 /llvm/lib/Target
parentf03b63de59bc7adb5e8a71450f77d35c09a34f51 (diff)
downloadbcm5719-llvm-f6d2471c5d82e6d89545c587ea52172c03555b28.tar.gz
bcm5719-llvm-f6d2471c5d82e6d89545c587ea52172c03555b28.zip
Fix use-before-def thinko
llvm-svn: 14570
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/TargetData.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetData.cpp b/llvm/lib/Target/TargetData.cpp
index 59ef5accd8d..a6379afee47 100644
--- a/llvm/lib/Target/TargetData.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud