Allow building for release with EXPENSIVE_CHECKS
authorTomas Matheson <tomas.matheson@arm.com>
Fri, 18 Jun 2021 09:57:59 +0000 (10:57 +0100)
committerTomas Matheson <tomas.matheson@arm.com>
Sat, 19 Jun 2021 16:02:11 +0000 (17:02 +0100)
commit1bcfa84ae908ddcf042163345ffee2d247669e60
tree71f2501457bc19ac2aae15334f70859fe083609d
parent18dbe6897857944653ee8f68dca8d63bc38aaff8
Allow building for release with EXPENSIVE_CHECKS

D97225 moved LazyCallGraph verify() calls behind EXPENSIVE_CHECKS,
but verity() is defined for debug builds only so this had the unintended
effect of breaking release builds with EXPENSIVE_CHECKS.

Fix by enabling verify() for both debug and EXPENSIVE_CHECKS.

Differential Revision: https://reviews.llvm.org/D104514
llvm/include/llvm/Analysis/LazyCallGraph.h
llvm/lib/Analysis/LazyCallGraph.cpp