Remove one of the void casts used to suppress unused variable warning.
authorRichard Trieu <rtrieu@google.com>
Tue, 15 Dec 2015 23:47:17 +0000 (23:47 +0000)
committerRichard Trieu <rtrieu@google.com>
Tue, 15 Dec 2015 23:47:17 +0000 (23:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255709 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/CrossDSOCFI.cpp

index e45d456fdbb7ad3e93df89c0df961ece712b0ec3..5bbb7513005c6e1dc07713ed153401512b33c18e 100644 (file)
@@ -89,7 +89,6 @@ ConstantInt *CrossDSOCFI::extractBitSetTypeId(MDNode *MD) {
   // 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.