[clangd] Fix a null dereference in tests.
authorKadir Cetinkaya <kadircet@google.com>
Wed, 28 Oct 2020 16:32:29 +0000 (17:32 +0100)
committerKadir Cetinkaya <kadircet@google.com>
Wed, 28 Oct 2020 17:24:26 +0000 (18:24 +0100)
clang-tools-extra/clangd/unittests/support/TraceTests.cpp

index bb515ed..a482212 100644 (file)
@@ -61,6 +61,7 @@ bool VerifyObject(llvm::yaml::Node &N,
     if (!V) {
       ADD_FAILURE() << KS << " is not a string";
       Match = false;
+      continue;
     }
     std::string VS = V->getValue(Tmp).str();
     if (VS != I->second) {