aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@gcc.gnu.org>2000-06-09 18:02:21 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2000-06-09 18:02:21 +0000
commite7cd085f5cd9498841bba14f1dd8808a83e857b0 (patch)
tree76507c57d90792d498db4d3ef2764c831dfc5ca1 /gcc/tree.h
parent4d8a1dd6c640c04cd69596e3d05f9999fcbf7e87 (diff)
downloadgcc-e7cd085f5cd9498841bba14f1dd8808a83e857b0.zip
gcc-e7cd085f5cd9498841bba14f1dd8808a83e857b0.tar.gz
gcc-e7cd085f5cd9498841bba14f1dd8808a83e857b0.tar.bz2
tree.h (VOID_TYPE_P): Don't look at the TYPE_MAIN_VARIANT of an error_type_node.
* tree.h (VOID_TYPE_P): Don't look at the TYPE_MAIN_VARIANT of an error_type_node. From-SVN: r34475
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 450dbd1..5648ecc 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -454,7 +454,7 @@ extern void tree_class_check_failed PARAMS ((const tree, char,
#define COMPLETE_TYPE_P(NODE) (TYPE_SIZE (NODE) != NULL_TREE)
/* Nonzero if this type is the (possibly qualified) void type. */
-#define VOID_TYPE_P(NODE) (TYPE_MAIN_VARIANT (NODE) == void_type_node)
+#define VOID_TYPE_P(NODE) (TREE_CODE (NODE) == VOID_TYPE)
/* Nonzero if this type is complete or is cv void. */
#define COMPLETE_OR_VOID_TYPE_P(NODE) \