[llvm] r255704 - Cast variable to void to resolve unused variable warning in non-asserts builds.
Richard Trieu via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 15 15:25:34 PST 2015
Author: rtrieu
Date: Tue Dec 15 17:25:34 2015
New Revision: 255704
URL: http://llvm.org/viewvc/llvm-project?rev=255704&view=rev
Log:
Cast variable to void to resolve unused variable warning in non-asserts builds.
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=255704&r1=255703&r2=255704&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/CrossDSOCFI.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/CrossDSOCFI.cpp Tue Dec 15 17:25:34 2015
@@ -89,6 +89,7 @@ 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());
}
More information about the llvm-commits
mailing list