diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp index 0e86efd5eabc..4cdb385c3e30 100644 --- a/llvm/lib/Transforms/IPO/Attributor.cpp +++ b/llvm/lib/Transforms/IPO/Attributor.cpp @@ -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!");