Fix misuse of llvm::YAML in clangd test.
authorJordan Rose <jordan_rose@apple.com>
Fri, 23 Mar 2018 19:16:07 +0000 (19:16 +0000)
committerJordan Rose <jordan_rose@apple.com>
Fri, 23 Mar 2018 19:16:07 +0000 (19:16 +0000)
Caught by LLVM r328345!

llvm-svn: 328354

clang-tools-extra/unittests/clangd/TraceTests.cpp

index 553997a..02fe7da 100644 (file)
@@ -41,7 +41,7 @@ bool VerifyObject(yaml::Node &N, std::map<std::string, std::string> Expected) {
   }
   bool Match = true;
   SmallString<32> Tmp;
-  for (auto Prop : *M) {
+  for (auto &Prop : *M) {
     auto *K = dyn_cast_or_null<yaml::ScalarNode>(Prop.getKey());
     if (!K)
       continue;