[llvm] r369334 - [Attributor] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after r369331
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 20 00:21:43 PDT 2019
Author: maskray
Date: Tue Aug 20 00:21:43 2019
New Revision: 369334
URL: http://llvm.org/viewvc/llvm-project?rev=369334&view=rev
Log:
[Attributor] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after r369331
Modified:
llvm/trunk/lib/Transforms/IPO/Attributor.cpp
Modified: llvm/trunk/lib/Transforms/IPO/Attributor.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/Attributor.cpp?rev=369334&r1=369333&r2=369334&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/Attributor.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/Attributor.cpp Tue Aug 20 00:21:43 2019
@@ -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!");
More information about the llvm-commits
mailing list