diff options
Diffstat (limited to 'gcc/cp/decl.c')
| -rw-r--r-- | gcc/cp/decl.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 25ecca7..fbc7dd7 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -8220,13 +8220,6 @@ grokparms (cp_parameter_declarator *first_parm, tree *parms) if (type != error_mark_node) { - /* If this type is passed by invisible reference, make the PARM_DECL - reflect that so that alias analysis knows that the actual object - is external to the function. */ - if (TREE_ADDRESSABLE (type)) - decl = build_decl (PARM_DECL, DECL_NAME (decl), - build_reference_type (type)); - /* Top-level qualifiers on the parameters are ignored for function types. */ type = cp_build_qualified_type (type, 0); @@ -8261,7 +8254,7 @@ grokparms (cp_parameter_declarator *first_parm, tree *parms) } if (!any_error && init) - init = check_default_argument (type, init); + init = check_default_argument (decl, init); else init = NULL_TREE; } |
