From: Adam Balogh Date: Fri, 12 Jun 2020 15:07:47 +0000 (+0200) Subject: [Analyzer] Replace `assert` with `ASSERT_TRUE` in a unit test to silence warnings X-Git-Tag: llvmorg-12-init~3257 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2a37cfe2bda0bc8c4d2e981922b5ac59c429bdc;p=platform%2Fupstream%2Fllvm.git [Analyzer] Replace `assert` with `ASSERT_TRUE` in a unit test to silence warnings --- diff --git a/clang/unittests/StaticAnalyzer/ParamRegionTest.cpp b/clang/unittests/StaticAnalyzer/ParamRegionTest.cpp index 7ec032a..3dbbc7b 100644 --- a/clang/unittests/StaticAnalyzer/ParamRegionTest.cpp +++ b/clang/unittests/StaticAnalyzer/ParamRegionTest.cpp @@ -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(D2), SFC); }));