* [C++ Patch] Define build_capture_proxy as static
@ 2018-02-26 10:27 Paolo Carlini
2018-02-26 14:09 ` Jason Merrill
0 siblings, 1 reply; 2+ messages in thread
From: Paolo Carlini @ 2018-02-26 10:27 UTC (permalink / raw)
To: gcc-patches; +Cc: Jason Merrill
[-- Attachment #1: Type: text/plain, Size: 111 bytes --]
Hi,
today noticed this straightforward nit trivial enough for this stage?
Thanks, Paolo.
/////////////////
[-- Attachment #2: CL --]
[-- Type: text/plain, Size: 149 bytes --]
2018-02-26 Paolo Carlini <paolo.carlini@oracle.com>
* lambda.c (build_capture_proxy): Define static.
* cp-tree.h (build_capture_proxy): Remove.
[-- Attachment #3: patchlet --]
[-- Type: text/plain, Size: 1009 bytes --]
Index: cp-tree.h
===================================================================
--- cp-tree.h (revision 257983)
+++ cp-tree.h (working copy)
@@ -6890,7 +6890,6 @@ extern tree lambda_function (tree);
extern void apply_deduced_return_type (tree, tree);
extern tree add_capture (tree, tree, tree, bool, bool);
extern tree add_default_capture (tree, tree, tree);
-extern tree build_capture_proxy (tree, tree);
extern void insert_capture_proxy (tree);
extern void insert_pending_capture_proxies (void);
extern bool is_capture_proxy (tree);
Index: lambda.c
===================================================================
--- lambda.c (revision 257983)
+++ lambda.c (working copy)
@@ -388,7 +388,7 @@ lambda_proxy_type (tree ref)
inside the operator(), build a placeholder var for future lookups and
debugging. */
-tree
+static tree
build_capture_proxy (tree member, tree init)
{
tree var, object, fn, closure, name, lam, type;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-02-26 14:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-26 10:27 [C++ Patch] Define build_capture_proxy as static Paolo Carlini
2018-02-26 14:09 ` Jason Merrill
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).