[llvm-commits] CVS: llvm/lib/Target/TargetData.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Fri Jul 2 02:02:02 PDT 2004
Changes in directory llvm/lib/Target:
TargetData.cpp updated: 1.47 -> 1.48
---
Log message:
Fix use-before-def thinko
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Target/TargetData.cpp
diff -u llvm/lib/Target/TargetData.cpp:1.47 llvm/lib/Target/TargetData.cpp:1.48
--- llvm/lib/Target/TargetData.cpp:1.47 Thu Jul 1 12:32:59 2004
+++ llvm/lib/Target/TargetData.cpp Fri Jul 2 02:01:31 2004
@@ -169,8 +169,8 @@
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;
}
More information about the llvm-commits
mailing list