[llvm-commits] CVS: llvm-gcc/gcc/llvm-expand.c
Chris Lattner
lattner at cs.uiuc.edu
Fri Jun 18 19:56:01 PDT 2004
Changes in directory llvm-gcc/gcc:
llvm-expand.c updated: 1.42 -> 1.43
---
Log message:
Fix PR374: http://llvm.cs.uiuc.edu/PR374 . We only want to index into arrays in this case, not arrays and structures
---
Diffs of the changes: (+1 -1)
Index: llvm-gcc/gcc/llvm-expand.c
diff -u llvm-gcc/gcc/llvm-expand.c:1.42 llvm-gcc/gcc/llvm-expand.c:1.43
--- llvm-gcc/gcc/llvm-expand.c:1.42 Thu Jun 17 22:47:02 2004
+++ llvm-gcc/gcc/llvm-expand.c Fri Jun 18 19:49:13 2004
@@ -5268,7 +5268,7 @@
llvm_type *IntPtrTy =
llvm_type_get_integer(llvm_type_get_size(VoidPtrTy)*8, 0);
- if (llvm_type_is_composite(Op0Ty)) {
+ if (Op0Ty->ID == ArrayTyID) {
llvm_value *Op0 = llvm_expand_lvalue_expr(Fn, tOp0, 0, 0);
llvm_value *Op1 = llvm_expand_expr(Fn, tOp1, 0);
Op1 = cast_if_type_not_equal(Fn, Op1, IntPtrTy);
More information about the llvm-commits
mailing list