aboutsummaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorMark Mitchell <mmitchell@usa.net>1998-03-11 23:34:32 +0000
committerMark Mitchell <mmitchell@gcc.gnu.org>1998-03-11 23:34:32 +0000
commit6d89b990a536d3ec4c3edfc1126c0abb1bab1251 (patch)
treeecd40c8abc8a8962a961c6ce6713710d05daf71d /gcc/dbxout.c
parent01c7f3501b56dde0b41a1e698b8c85f982d13662 (diff)
downloadgcc-6d89b990a536d3ec4c3edfc1126c0abb1bab1251.zip
gcc-6d89b990a536d3ec4c3edfc1126c0abb1bab1251.tar.gz
gcc-6d89b990a536d3ec4c3edfc1126c0abb1bab1251.tar.bz2
dbxout.c (dbxout_type_methods): Only treat TYPE_METHODS as a TREE_VEC if that's what it really is.
* dbxout.c (dbxout_type_methods): Only treat TYPE_METHODS as a TREE_VEC if that's what it really is. From-SVN: r18487
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r--gcc/dbxout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 7fa9139..101574f 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -824,7 +824,7 @@ dbxout_type_methods (type)
sprintf(formatted_type_identifier_length, "%d", type_identifier_length);
- if (TREE_CODE (methods) == FUNCTION_DECL)
+ if (TREE_CODE (methods) != TREE_VEC)
fndecl = methods;
else if (TREE_VEC_ELT (methods, 0) != NULL_TREE)
fndecl = TREE_VEC_ELT (methods, 0);