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 | f6d2471c5d82e6d89545c587ea52172c03555b28 (patch) | |
| tree | 0a8ac12692b4a3a05305ea17ce772d11d7b5d9c3 /llvm/lib/Target | |
| parent | f03b63de59bc7adb5e8a71450f77d35c09a34f51 (diff) | |
| download | bcm5719-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.cpp | 2 |
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; } |

