[Attributor] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after r369331

llvm-svn: 369334
This commit is contained in:
Fangrui Song 2019-08-20 07:21:43 +00:00
parent 1ada137854
commit f182617352
1 changed files with 1 additions and 0 deletions

View File

@ -2552,6 +2552,7 @@ ChangeStatus Attributor::run() {
NumAttributesManifested += NumManifested;
NumAttributesValidFixpoint += NumAtFixpoint;
(void)NumFinalAAs;
assert(
NumFinalAAs == AllAbstractAttributes.size() &&
"Expected the final number of abstract attributes to remain unchanged!");