diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-07-02 07:01:31 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-07-02 07:01:31 +0000 |
commit | e0e3589949eced97e6ffed9ff76ce0cae87ab52e (patch) | |
tree | 457019eab189c0755d18f34312a1acd82759133f /lib/Target/TargetData.cpp | |
parent | 750c425d76dc1c7cefefcd87c3a88207bbdf777b (diff) |
Fix use-before-def thinko
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14570 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetData.cpp')
-rw-r--r-- | lib/Target/TargetData.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp index 59ef5accd8..a6379afee4 100644 --- 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; } |