Skip to content

Commit

Permalink
[Analyzer] Replace assert with ASSERT_TRUE in a unit test to sile…
Browse files Browse the repository at this point in the history
…nce warnings
  • Loading branch information
Adam Balogh committed Jun 12, 2020
1 parent c8c7bb3 commit b2a37cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/unittests/StaticAnalyzer/ParamRegionTest.cpp
Expand Up @@ -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);
}));
Expand Down

0 comments on commit b2a37cf

Please sign in to comment.