diff options
author | Tom Tromey <tromey@redhat.com> | 2003-01-03 23:09:33 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2003-01-03 23:09:33 +0000 |
commit | f3ce4abad03bbb47fab8535d8a24bf6fc3940c14 (patch) | |
tree | 63d7a54f9fabb64a56e1ce0d4394f6ae265c5a3f /gcc/java/expr.c | |
parent | d3c300d23886c539beb3460c8a6e9db099dca114 (diff) | |
download | gcc-f3ce4abad03bbb47fab8535d8a24bf6fc3940c14.zip gcc-f3ce4abad03bbb47fab8535d8a24bf6fc3940c14.tar.gz gcc-f3ce4abad03bbb47fab8535d8a24bf6fc3940c14.tar.bz2 |
re PR java/8712 (ICE at fold-const.c:2934)
Fix for PR java/8712:
* expr.c (build_instanceof): Build an NE_EXPR, not a COND_EXPR,
when simply checking against `null'.
From-SVN: r60859
Diffstat (limited to 'gcc/java/expr.c')
-rw-r--r-- | gcc/java/expr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c index 60f668b..a4b4b7a 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -1257,9 +1257,7 @@ build_instanceof (value, type) /* Anything except `null' is an instance of Object. Likewise, if the object is known to be an instance of the class, then we only need to check for `null'. */ - expr = build (COND_EXPR, itype, - value, - boolean_true_node, boolean_false_node); + expr = build (NE_EXPR, itype, value, null_pointer_node); } else if (! TYPE_ARRAY_P (type) && ! TYPE_ARRAY_P (valtype) |