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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c
index 70a2fe9..4f7c0dc 100644
--- a/gcc/java/expr.c
+++ b/gcc/java/expr.c
@@ -1157,7 +1157,9 @@ build_instanceof (value, type)
value,
boolean_true_node, boolean_false_node);
}
- else if (DECL_P (klass) && DECL_P (valclass)
+ else if (! TYPE_ARRAY_P (type)
+ && ! TYPE_ARRAY_P (valtype)
+ && DECL_P (klass) && DECL_P (valclass)
&& ! CLASS_INTERFACE (valclass)
&& ! CLASS_INTERFACE (klass)
&& ! inherits_from_p (type, valtype)