[llvm] r255709 - Remove one of the void casts used to suppress unused variable warning.

Richard Trieu via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 15 15:47:18 PST 2015


Author: rtrieu
Date: Tue Dec 15 17:47:17 2015
New Revision: 255709

URL: http://llvm.org/viewvc/llvm-project?rev=255709&view=rev
Log:
Remove one of the void casts used to suppress unused variable warning.

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=255709&r1=255708&r2=255709&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/CrossDSOCFI.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/CrossDSOCFI.cpp Tue Dec 15 17:47:17 2015
@@ -89,7 +89,6 @@ ConstantInt *CrossDSOCFI::extractBitSetT
   // Can be null if a function was removed by an optimization.
   if (FM) {
     auto F = dyn_cast<Function>(FM->getValue());
-    (void)F;
     // But can never be a function declaration.
     assert(!F || !F->isDeclaration());
     (void)F; // Suppress unused variable warning in the no-asserts build.




More information about the llvm-commits mailing list