From 213ecac93cda962ad3eefc5f5231529c84f41650 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 9 Dec 1994 03:29:37 +0000 Subject: [PATCH] (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 --- gcc/dbxout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/dbxout.c b/gcc/dbxout.c index ddddd40ebbc..d1b1dcd897e 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. -- 2.30.2