[llvm-commits] CVS: llvm-gcc/gcc/llvm-types.c
Chris Lattner
lattner at cs.uiuc.edu
Fri Aug 6 11:07:46 PDT 2004
Changes in directory llvm-gcc/gcc:
llvm-types.c updated: 1.14 -> 1.15
---
Log message:
Actually use uint's to index into structure elements instead of ubytes.
---
Diffs of the changes: (+2 -2)
Index: llvm-gcc/gcc/llvm-types.c
diff -u llvm-gcc/gcc/llvm-types.c:1.14 llvm-gcc/gcc/llvm-types.c:1.15
--- llvm-gcc/gcc/llvm-types.c:1.14 Fri Aug 6 13:03:30 2004
+++ llvm-gcc/gcc/llvm-types.c Fri Aug 6 13:07:34 2004
@@ -1114,7 +1114,7 @@
TREE_INT_CST_LOW(TYPE_SIZE(TREE_TYPE(Field)));
unsigned Align = TYPE_ALIGN(TREE_TYPE(Field));
assert(Offset == 0 && "Offset always thought to be zero in union!");
- SET_DECL_LLVM(Field, llvm_constant_new_integral(UByteTy, 0));
+ SET_DECL_LLVM(Field, llvm_constant_new_integral(UIntTy, 0));
if (Align > MaxAlign) {
MaxAlign = Align;
@@ -1341,7 +1341,7 @@
#if DEBUG_STRUCT_LAYOUT
fprintf(stderr, "%d, ", Idx);
#endif
- SET_DECL_LLVM(Field, llvm_constant_new_integral(UByteTy, Idx));
+ SET_DECL_LLVM(Field, llvm_constant_new_integral(UIntTy, Idx));
/* If we just passed over a zero sized field, skip ahead to the next
* field, so we don't assign all consequtive zero sized elements to the
More information about the llvm-commits
mailing list