Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu.
Pushed to trunk as r15-4806-ga91569d47d68cf.

gcc/ChangeLog:
        * opts-diagnostic.cc (output_factory::handler::handler): Use
        std::move on name.

Signed-off-by: David Malcolm <dmalc...@redhat.com>
---
 gcc/opts-diagnostic.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/opts-diagnostic.cc b/gcc/opts-diagnostic.cc
index 8dd4234ab0f4..97ff5777ef0a 100644
--- a/gcc/opts-diagnostic.cc
+++ b/gcc/opts-diagnostic.cc
@@ -107,7 +107,7 @@ public:
   class handler
   {
   public:
-    handler (std::string name) : m_name (name) {}
+    handler (std::string name) : m_name (std::move (name)) {}
     virtual ~handler () {}
 
     const std::string &get_name () const { return m_name; }
-- 
2.26.3

Reply via email to