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) {


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to