[clangd] Fix an accident change in r342999.
authorHaojian Wu <hokein@google.com>
Tue, 9 Oct 2018 15:16:14 +0000 (15:16 +0000)
committerHaojian Wu <hokein@google.com>
Tue, 9 Oct 2018 15:16:14 +0000 (15:16 +0000)
llvm-svn: 344054

clang-tools-extra/clangd/index/YAMLSerialization.cpp

index a426cce..06c4ef7 100644 (file)
@@ -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;
 }