Commit 08514ae4 by Bryce McKinlay Committed by Bryce McKinlay

expr.c (build_java_array_length_access): Don't force null pointer check unless…

expr.c (build_java_array_length_access): Don't force null pointer check unless flag_check_references is set.

	* expr.c (build_java_array_length_access): Don't force null pointer
	check unless flag_check_references is set.

From-SVN: r48219
parent d68c98e1
2001-12-20 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* expr.c (build_java_array_length_access): Don't force null pointer
check unless flag_check_references is set.
2001-12-20 Tom Tromey <tromey@redhat.com> 2001-12-20 Tom Tromey <tromey@redhat.com>
Fix for PR java/3417: Fix for PR java/3417:
......
...@@ -709,7 +709,8 @@ build_java_array_length_access (node) ...@@ -709,7 +709,8 @@ build_java_array_length_access (node)
return build_int_2 (length, 0); return build_int_2 (length, 0);
node = build1 (INDIRECT_REF, int_type_node, node = build1 (INDIRECT_REF, int_type_node,
fold (build (PLUS_EXPR, ptr_type_node, fold (build (PLUS_EXPR, ptr_type_node,
java_check_reference (node, 1), java_check_reference (node,
flag_check_references),
JAVA_ARRAY_LENGTH_OFFSET(node)))); JAVA_ARRAY_LENGTH_OFFSET(node))));
IS_ARRAY_LENGTH_ACCESS (node) = 1; IS_ARRAY_LENGTH_ACCESS (node) = 1;
return fold (node); return fold (node);
......
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