[llvm] r255706 - Suppress unused variable warning in the no-asserts build.

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 15 15:30:29 PST 2015


Author: eugenis
Date: Tue Dec 15 17:30:29 2015
New Revision: 255706

URL: http://llvm.org/viewvc/llvm-project?rev=255706&view=rev
Log:
Suppress unused variable warning in the no-asserts build.

Modified:
    llvm/trunk/lib/Transforms/IPO/CrossDSOCFI.cpp

Modified: llvm/trunk/lib/Transforms/IPO/CrossDSOCFI.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/CrossDSOCFI.cpp?rev=255706&r1=255705&r2=255706&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/CrossDSOCFI.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/CrossDSOCFI.cpp Tue Dec 15 17:30:29 2015
@@ -92,6 +92,7 @@ ConstantInt *CrossDSOCFI::extractBitSetT
     (void)F;
     // But can never be a function declaration.
     assert(!F || !F->isDeclaration());
+    (void)F; // Suppress unused variable warning in the no-asserts build.
   }
   return C;
 }




More information about the llvm-commits mailing list