Commit 6d23f07f by Andrew Haley Committed by Andrew Haley

expr.c (build_field_ref): Widen field offset.

2004-01-28  Andrew Haley  <aph@redhat.com>

        * expr.c (build_field_ref): Widen field offset.

From-SVN: r76860
parent 3ae4a5b1
2004-01-28 Andrew Haley <aph@redhat.com>
* expr.c (build_field_ref): Widen field offset.
2004-01-27 Andrew Haley <aph@redhat.com>
java/13273
......
......@@ -1523,6 +1523,7 @@ build_field_ref (tree self_value, tree self_class, tree name)
tree field_offset =
build (ARRAY_REF, integer_type_node, TYPE_OTABLE_DECL (output_class),
otable_index);
field_offset = fold (convert (sizetype, field_offset));
tree address
= fold (build (PLUS_EXPR,
build_pointer_type (TREE_TYPE (field_decl)),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment