summaryrefslogtreecommitdiffstats
path: root/gcc/java/expr.c
diff options
context:
space:
mode:
authorapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-16 22:31:52 +0000
committerapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-16 22:31:52 +0000
commit4caf3e12dbdf88157e0d6ec56a417e41d0a6d856 (patch)
treee0047553957bce79ad10a84c5610e93daba3c3aa /gcc/java/expr.c
parent574b70a0456f4245e566533bcd077a10e890c620 (diff)
downloadppe42-gcc-4caf3e12dbdf88157e0d6ec56a417e41d0a6d856.tar.gz
ppe42-gcc-4caf3e12dbdf88157e0d6ec56a417e41d0a6d856.zip
2001-02-15 Alexandre Petit-Bianco <apbianco@redhat.com>
* expr.c (build_instanceof): Check for arrays when trying fold to false. (http://gcc.gnu.org/ml/gcc-patches/2001-02/msg00993.html) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39778 138bc75d-0d04-0410-961f-82ee72b054a4
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 70a2fe91276..4f7c0dc6a86 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)
OpenPOWER on IntegriCloud