Cast variable to void to resolve unused variable warning in non-asserts builds.
llvm-svn: 255704
This commit is contained in:
parent
7036e503d7
commit
fc69e7d65b
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue