[clang-tools-extra] r344054 - [clangd] Fix an accident change in r342999.

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 9 08:16:14 PDT 2018


Author: hokein
Date: Tue Oct  9 08:16:14 2018
New Revision: 344054

URL: http://llvm.org/viewvc/llvm-project?rev=344054&view=rev
Log:
[clangd] Fix an accident change in r342999.

Modified:
    clang-tools-extra/trunk/clangd/index/YAMLSerialization.cpp

Modified: clang-tools-extra/trunk/clangd/index/YAMLSerialization.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/YAMLSerialization.cpp?rev=344054&r1=344053&r2=344054&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/index/YAMLSerialization.cpp (original)
+++ clang-tools-extra/trunk/clangd/index/YAMLSerialization.cpp Tue Oct  9 08:16:14 2018
@@ -286,7 +286,7 @@ std::string toYAML(const Symbol &S) {
     llvm::raw_string_ostream OS(Buf);
     llvm::yaml::Output Yout(OS);
     Symbol Sym = S; // copy: Yout<< requires mutability.
-    OS << Sym;
+    Yout << Sym;
   }
   return Buf;
 }




More information about the cfe-commits mailing list