Author: adrian
Date: Fri Sep 18 19:59:19 2015
New Revision: 248076

URL: http://llvm.org/viewvc/llvm-project?rev=248076&view=rev
Log:
Use std::move on these arguments.

Modified:
    cfe/trunk/include/clang/AST/ExternalASTSource.h

Modified: cfe/trunk/include/clang/AST/ExternalASTSource.h
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ExternalASTSource.h?rev=248076&r1=248075&r2=248076&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ExternalASTSource.h (original)
+++ cfe/trunk/include/clang/AST/ExternalASTSource.h Fri Sep 18 19:59:19 2015
@@ -149,8 +149,8 @@ public:
     ASTSourceDescriptor(){};
     ASTSourceDescriptor(std::string Name, std::string Path, std::string 
ASTFile,
                         uint64_t Signature)
-        : FullModuleName(Name), Path(Path), ASTFile(ASTFile),
-          Signature(Signature){};
+        : FullModuleName(std::move(Name)), Path(std::move(Path)),
+          ASTFile(std::move(ASTFile)), Signature(Signature){};
     ASTSourceDescriptor(const Module &M);
     std::string FullModuleName;
     std::string Path;


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to