Cast variable to void to resolve unused variable warning in non-asserts builds.
authorRichard Trieu <rtrieu@google.com>
Tue, 15 Dec 2015 23:25:34 +0000 (23:25 +0000)
committerRichard Trieu <rtrieu@google.com>
Tue, 15 Dec 2015 23:25:34 +0000 (23:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255704 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/CrossDSOCFI.cpp

index 66abf7078afcd837b3482b75cfd9630bed42bed1..a91ee8451593e80baa4b8b08341bedfd3e14f315 100644 (file)
@@ -89,6 +89,7 @@ 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());
   // 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());
   }
     // But can never be a function declaration.
     assert(!F || !F->isDeclaration());
   }