r311656 - Add missing std::move call
Alex Lorenz via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 24 07:08:19 PDT 2017
Author: arphaman
Date: Thu Aug 24 07:08:18 2017
New Revision: 311656
URL: http://llvm.org/viewvc/llvm-project?rev=311656&view=rev
Log:
Add missing std::move call
This should fix
http://green.lab.llvm.org/green/job/clang-stage1-cmake-RA-incremental_build/41578/
Modified:
cfe/trunk/lib/Tooling/Refactoring/ASTSelection.cpp
Modified: cfe/trunk/lib/Tooling/Refactoring/ASTSelection.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Tooling/Refactoring/ASTSelection.cpp?rev=311656&r1=311655&r2=311656&view=diff
==============================================================================
--- cfe/trunk/lib/Tooling/Refactoring/ASTSelection.cpp (original)
+++ cfe/trunk/lib/Tooling/Refactoring/ASTSelection.cpp Thu Aug 24 07:08:18 2017
@@ -42,7 +42,7 @@ public:
SelectionStack.pop_back();
if (Result.Children.empty())
return None;
- return Result;
+ return std::move(Result);
}
bool TraverseDecl(Decl *D) {
More information about the cfe-commits
mailing list