Fix use-before-def thinko

llvm-svn: 14570
This commit is contained in:
Brian Gaeke 2004-07-02 07:01:31 +00:00
parent f03b63de59
commit f6d2471c5d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}