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
This commit is contained in:
parent
d68c98e1d2
commit
08514ae4a5
@ -1,3 +1,8 @@
|
||||
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>
|
||||
|
||||
Fix for PR java/3417:
|
||||
|
@ -709,7 +709,8 @@ build_java_array_length_access (node)
|
||||
return build_int_2 (length, 0);
|
||||
node = build1 (INDIRECT_REF, int_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))));
|
||||
IS_ARRAY_LENGTH_ACCESS (node) = 1;
|
||||
return fold (node);
|
||||
|
Loading…
Reference in New Issue
Block a user