1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00

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 c663be5f98
commit bf34638e13

View 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());
(void)F;
// But can never be a function declaration.
assert(!F || !F->isDeclaration());
}