Skip to content

Commit 8b435c1

Browse files
committed
ASTTests: Suppress a warning in -Asserts for #95202 [-Wunused-variable]
1 parent 7adb7aa commit 8b435c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/unittests/AST/ProfilingTest.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ static auto getClassTemplateRedecls() {
3434
Res.push_back(CTD);
3535
}
3636
assert(Res.size() == 3);
37+
#ifndef NDEBUG
3738
for (auto &&I : Res)
3839
assert(I->getCanonicalDecl() == Res[0]);
40+
#endif
3941
return std::make_tuple(std::move(AST), Res[1], Res[2]);
4042
}
4143

0 commit comments

Comments
 (0)