aboutsummaryrefslogtreecommitdiff
path: root/libcc1
diff options
context:
space:
mode:
Diffstat (limited to 'libcc1')
-rw-r--r--libcc1/ChangeLog4
-rw-r--r--libcc1/libcp1plugin.cc4
2 files changed, 6 insertions, 2 deletions
diff --git a/libcc1/ChangeLog b/libcc1/ChangeLog
index 14344b8..1d3921b 100644
--- a/libcc1/ChangeLog
+++ b/libcc1/ChangeLog
@@ -1,3 +1,7 @@
+2017-06-16 Nathan Sidwell <nathan@acm.org>
+
+ * libcp1plugin.cc (plugin_build_decl): Adjust parm building.
+
2017-05-26 Nathan Sidwell <nathan@acm.org>
* libcp1plugin.cc (plugin_make_namespace_inline): Push onto linees.
diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc
index a96ffc0..9d9221c 100644
--- a/libcc1/libcp1plugin.cc
+++ b/libcc1/libcp1plugin.cc
@@ -1366,7 +1366,7 @@ plugin_build_decl (cc1_plugin::connection *self,
overloading. */
SET_DECL_LANGUAGE (decl, lang_cplusplus);
if (TREE_CODE (sym_type) == METHOD_TYPE)
- DECL_ARGUMENTS (decl) = build_this_parm (current_class_type,
+ DECL_ARGUMENTS (decl) = build_this_parm (decl, current_class_type,
cp_type_quals (sym_type));
for (tree arg = TREE_CODE (sym_type) == METHOD_TYPE
? TREE_CHAIN (TYPE_ARG_TYPES (sym_type))
@@ -1374,7 +1374,7 @@ plugin_build_decl (cc1_plugin::connection *self,
arg && arg != void_list_node;
arg = TREE_CHAIN (arg))
{
- tree parm = cp_build_parm_decl (NULL_TREE, TREE_VALUE (arg));
+ tree parm = cp_build_parm_decl (decl, NULL_TREE, TREE_VALUE (arg));
DECL_CHAIN (parm) = DECL_ARGUMENTS (decl);
DECL_ARGUMENTS (decl) = parm;
}