Commit 213ecac9 by Jason Merrill

(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
parent ec85dbf8
...@@ -687,13 +687,13 @@ dbxout_type_method_1 (decl, debug_name) ...@@ -687,13 +687,13 @@ dbxout_type_method_1 (decl, debug_name)
tree decl; tree decl;
char *debug_name; char *debug_name;
{ {
tree firstarg = TREE_VALUE (TYPE_ARG_TYPES (TREE_TYPE (decl)));
char c1 = 'A', c2; char c1 = 'A', c2;
if (TREE_CODE (TREE_TYPE (decl)) == FUNCTION_TYPE) if (TREE_CODE (TREE_TYPE (decl)) == FUNCTION_TYPE)
c2 = '?'; c2 = '?';
else /* it's a METHOD_TYPE. */ else /* it's a METHOD_TYPE. */
{ {
tree firstarg = TREE_VALUE (TYPE_ARG_TYPES (TREE_TYPE (decl)));
/* A for normal functions. /* A for normal functions.
B for `const' member functions. B for `const' member functions.
C for `volatile' member functions. C for `volatile' member functions.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment