mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
[Analyzer] Replace assert with ASSERT_TRUE in a unit test to silence warnings
This commit is contained in:
@@ -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);
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user