aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Macleod <amacleod@redhat.com>2016-03-30 18:01:24 +0000
committerAndrew Macleod <amacleod@redhat.com>2016-03-30 18:01:24 +0000
commit92cf0cf142c8699fc731522d5cb3ec9ca245ade0 (patch)
treef068f2eb4ce8735b44a1599672b72f3298e62486
parent325d1b9d87580186fda5c17a36ae5d774f8385a8 (diff)
error_operand_p is an inline functgion now
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/ttype-pro-trunk@234591 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/tree.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 21ea3de8654..fa4161e5be0 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -3812,10 +3812,17 @@ tree_operand_check_code (const_tree __t, enum tree_code __code, int __i,
#define long_long_unsigned_type_node integer_types[itk_unsigned_long_long]
/* True if NODE is an erroneous expression. */
+inline bool
+error_operand_p (tree t)
+{
+ return ((t == error_mark_node) || (t && (TREE_TYPE (t) == error_type_node)));
+}
-#define error_operand_p(NODE) \
- ((NODE) == error_mark_node \
- || ((NODE) && TREE_TYPE ((NODE)) == error_mark_node))
+inline bool
+error_operand_p (const_tree t)
+{
+ return ((t == error_mark_node) || (t && (TREE_TYPE (t) == error_type_node)));
+}
extern tree decl_assembler_name (tree);
extern tree decl_comdat_group (const_tree);