[clang-tools-extra] 68b4833 - [clangd] Fix a null dereference in tests.

Kadir Cetinkaya via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 28 10:25:25 PDT 2020


Author: Kadir Cetinkaya
Date: 2020-10-28T18:24:26+01:00
New Revision: 68b48339e5b2e7c5f9b74e790b4a4e2419a0a50b

URL: https://github.com/llvm/llvm-project/commit/68b48339e5b2e7c5f9b74e790b4a4e2419a0a50b
DIFF: https://github.com/llvm/llvm-project/commit/68b48339e5b2e7c5f9b74e790b4a4e2419a0a50b.diff

LOG: [clangd] Fix a null dereference in tests.

Added: 
    

Modified: 
    clang-tools-extra/clangd/unittests/support/TraceTests.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/unittests/support/TraceTests.cpp b/clang-tools-extra/clangd/unittests/support/TraceTests.cpp
index bb515edd7253..a48221259be3 100644
--- a/clang-tools-extra/clangd/unittests/support/TraceTests.cpp
+++ b/clang-tools-extra/clangd/unittests/support/TraceTests.cpp
@@ -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) {


        


More information about the cfe-commits mailing list