Skip to content

Commit

Permalink
Remove one of the void casts used to suppress unused variable warning.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255709 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Weverything committed Dec 15, 2015
1 parent b942424 commit d532d9e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/Transforms/IPO/CrossDSOCFI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d532d9e

Please sign in to comment.