summaryrefslogtreecommitdiffstats
path: root/gcc/java/expr.c
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-05 20:21:31 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-05 20:21:31 +0000
commit5dd4318b4440cdaf028e6f540bc7f341c1fcc6f3 (patch)
treefba2d3323d7f2571f5c37de39187febd503d8e75 /gcc/java/expr.c
parentf680b43ee143db4756e3789eb986393079b9801b (diff)
downloadppe42-gcc-5dd4318b4440cdaf028e6f540bc7f341c1fcc6f3.tar.gz
ppe42-gcc-5dd4318b4440cdaf028e6f540bc7f341c1fcc6f3.zip
gcc/
* c-semantics.c (build_stmt): Use TYPE_P instead of IS_NON_TYPE_CODE_CLASS. * tree.h (IS_NON_TYPE_CODE_CLASS): Remove. (NON_TYPE_CHECK): Use TYPE_P instead of IS_NON_TYPE_CODE_CLASS. java/ * expr.c (build_expr_wfl, expr_add_location): Use TYPE_P instead of IS_NON_TYPE_CODE_CLASS. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95942 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/expr.c')
-rw-r--r--gcc/java/expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c
index 7d515052ba0..2c517a16f2d 100644
--- a/gcc/java/expr.c
+++ b/gcc/java/expr.c
@@ -3591,7 +3591,7 @@ build_expr_wfl (tree node,
EXPR_WFL_NODE (wfl) = node;
if (node)
{
- if (IS_NON_TYPE_CODE_CLASS (TREE_CODE_CLASS (TREE_CODE (node))))
+ if (!TYPE_P (node))
TREE_SIDE_EFFECTS (wfl) = TREE_SIDE_EFFECTS (node);
TREE_TYPE (wfl) = TREE_TYPE (node);
}
@@ -3627,7 +3627,7 @@ expr_add_location (tree node, source_location location, bool statement)
EXPR_WFL_EMIT_LINE_NOTE (wfl) = 1;
if (node)
{
- if (IS_NON_TYPE_CODE_CLASS (TREE_CODE_CLASS (TREE_CODE (node))))
+ if (!TYPE_P (node))
TREE_SIDE_EFFECTS (wfl) = TREE_SIDE_EFFECTS (node);
TREE_TYPE (wfl) = TREE_TYPE (node);
}
OpenPOWER on IntegriCloud