[clang-tools-extra] r341832 - [clangd] Unbreak buildbots after r341802
    Kirill Bobyrev via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Mon Sep 10 07:31:38 PDT 2018
    
    
  
Author: omtcyfz
Date: Mon Sep 10 07:31:38 2018
New Revision: 341832
URL: http://llvm.org/viewvc/llvm-project?rev=341832&view=rev
Log:
[clangd] Unbreak buildbots after r341802
Solution: use std::move when returning result from toJSON(...).
Modified:
    clang-tools-extra/trunk/clangd/index/Index.cpp
Modified: clang-tools-extra/trunk/clangd/index/Index.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/Index.cpp?rev=341832&r1=341831&r2=341832&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/index/Index.cpp (original)
+++ clang-tools-extra/trunk/clangd/index/Index.cpp Mon Sep 10 07:31:38 2018
@@ -199,7 +199,7 @@ llvm::json::Value toJSON(const FuzzyFind
   if (Request.MaxCandidateCount <= std::numeric_limits<int64_t>::max())
     Result["MaxCandidateCount"] =
         static_cast<int64_t>(Request.MaxCandidateCount);
-  return Result;
+  return std::move(Result);
 }
 
 bool SwapIndex::fuzzyFind(const FuzzyFindRequest &R,
    
    
More information about the cfe-commits
mailing list