[Analyzer] Replace `assert` with `ASSERT_TRUE` in a unit test to silence warnings
authorAdam Balogh <adam.balogh@ericsson.com>
Fri, 12 Jun 2020 15:07:47 +0000 (17:07 +0200)
committerAdam Balogh <adam.balogh@ericsson.com>
Fri, 12 Jun 2020 15:09:34 +0000 (17:09 +0200)
clang/unittests/StaticAnalyzer/ParamRegionTest.cpp

index 7ec032a..3dbbc7b 100644 (file)
@@ -19,7 +19,7 @@ class ParamRegionTestConsumer : public ExprEngineConsumer {
   void checkForSameParamRegions(MemRegionManager &MRMgr,
                                 const StackFrameContext *SFC,
                                 const ParmVarDecl *PVD) {
-    assert(llvm::all_of(PVD->redecls(), [&](const clang::VarDecl *D2) {
+    ASSERT_TRUE(llvm::all_of(PVD->redecls(), [&](const clang::VarDecl *D2) {
       return MRMgr.getVarRegion(PVD, SFC) ==
              MRMgr.getVarRegion(cast<ParmVarDecl>(D2), SFC);
     }));