aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/expr.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/expr.c')
-rw-r--r--gcc/java/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c
index 4c5d1bb..136415b 100644
--- a/gcc/java/expr.c
+++ b/gcc/java/expr.c
@@ -1768,7 +1768,7 @@ java_lang_expand_expr (exp, target, tmode, modifier)
tree array_decl;
#if 0
/* Enable this once we can set the vtable field statically. FIXME */
- if (TREE_CONSTANT (init) && TREE_STATIC (init)
+ if (TREE_CONSTANT (init) && TREE_STATIC (exp)
&& JPRIMITIVE_TYPE_P (element_type))
{
tree temp, value, init_decl;