aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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]);
}