diff options
author | Geoffrey Keating <geoffk@gcc.gnu.org> | 2000-06-09 18:02:21 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2000-06-09 18:02:21 +0000 |
commit | e7cd085f5cd9498841bba14f1dd8808a83e857b0 (patch) | |
tree | 76507c57d90792d498db4d3ef2764c831dfc5ca1 /gcc/tree.h | |
parent | 4d8a1dd6c640c04cd69596e3d05f9999fcbf7e87 (diff) | |
download | gcc-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) \ |