Cast variable to void to resolve unused variable warning in non-asserts builds.

llvm-svn: 255704
This commit is contained in:
Richard Trieu 2015-12-15 23:25:34 +00:00
parent 7036e503d7
commit fc69e7d65b
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ ConstantInt *CrossDSOCFI::extractBitSetTypeId(MDNode *MD) {
// Can be null if a function was removed by an optimization. // Can be null if a function was removed by an optimization.
if (FM) { if (FM) {
auto F = dyn_cast<Function>(FM->getValue()); auto F = dyn_cast<Function>(FM->getValue());
(void)F;
// But can never be a function declaration. // But can never be a function declaration.
assert(!F || !F->isDeclaration()); assert(!F || !F->isDeclaration());
} }