Commit 09007174 by Jason Merrill

tweak

From-SVN: r21799
parent 5210f3d0
......@@ -2491,7 +2491,8 @@ do_type (work, mangled, result)
case 'A':
{
++(*mangled);
if (!STRING_EMPTY (&decl) && decl.b[0] == '*')
if (!STRING_EMPTY (&decl)
&& (decl.b[0] == '*' || decl.b[0] == '&'))
{
string_prepend (&decl, "(");
string_append (&decl, ")");
......@@ -2523,7 +2524,8 @@ do_type (work, mangled, result)
/* A function */
case 'F':
(*mangled)++;
if (!STRING_EMPTY (&decl) && decl.b[0] == '*')
if (!STRING_EMPTY (&decl)
&& (decl.b[0] == '*' || decl.b[0] == '&'))
{
string_prepend (&decl, "(");
string_append (&decl, ")");
......
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