aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2024-06-13 17:16:10 +0900
committerNAKAMURA Takumi <geek4civic@gmail.com>2024-06-13 17:34:39 +0900
commit8b435c18314e62530367a8721883a28c532e02ad (patch)
tree6747b4036216e4ac9aace8b1dc05b61ee6c56754 /clang/unittests
parent7adb7aa494247f2492f6207289ad90cb48807517 (diff)
downloadllvm-8b435c18314e62530367a8721883a28c532e02ad.zip
llvm-8b435c18314e62530367a8721883a28c532e02ad.tar.gz
llvm-8b435c18314e62530367a8721883a28c532e02ad.tar.bz2
ASTTests: Suppress a warning in -Asserts for #95202 [-Wunused-variable]
Diffstat (limited to 'clang/unittests')
-rw-r--r--clang/unittests/AST/ProfilingTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/AST/ProfilingTest.cpp b/clang/unittests/AST/ProfilingTest.cpp
index ed81f4e..27a4a19 100644
--- a/clang/unittests/AST/ProfilingTest.cpp
+++ b/clang/unittests/AST/ProfilingTest.cpp
@@ -34,8 +34,10 @@ static auto getClassTemplateRedecls() {
Res.push_back(CTD);
}
assert(Res.size() == 3);
+#ifndef NDEBUG
for (auto &&I : Res)
assert(I->getCanonicalDecl() == Res[0]);
+#endif
return std::make_tuple(std::move(AST), Res[1], Res[2]);
}