aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <merrill@gnu.org>1994-12-09 03:29:37 +0000
committerJason Merrill <merrill@gnu.org>1994-12-09 03:29:37 +0000
commit213ecac93cda962ad3eefc5f5231529c84f41650 (patch)
treef5731d323ca1410adbb9363caad008f74ef583a3
parentec85dbf8295c84e52576e02e9a09f282dc66e12b (diff)
downloadgcc-213ecac93cda962ad3eefc5f5231529c84f41650.zip
gcc-213ecac93cda962ad3eefc5f5231529c84f41650.tar.gz
gcc-213ecac93cda962ad3eefc5f5231529c84f41650.tar.bz2
(dbxout_type_method_1): Don't try to look at the first
argument of non-methods (which might not have a first argument). From-SVN: r8633
-rw-r--r--gcc/dbxout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index ddddd40..d1b1dcd 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -687,13 +687,13 @@ dbxout_type_method_1 (decl, debug_name)
tree decl;
char *debug_name;
{
- tree firstarg = TREE_VALUE (TYPE_ARG_TYPES (TREE_TYPE (decl)));
char c1 = 'A', c2;
if (TREE_CODE (TREE_TYPE (decl)) == FUNCTION_TYPE)
c2 = '?';
else /* it's a METHOD_TYPE. */
{
+ tree firstarg = TREE_VALUE (TYPE_ARG_TYPES (TREE_TYPE (decl)));
/* A for normal functions.
B for `const' member functions.
C for `volatile' member functions.