diff options
author | Richard Trieu <rtrieu@google.com> | 2015-12-15 23:25:34 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2015-12-15 23:25:34 +0000 |
commit | fc69e7d65b51bbaf17d7a0330beec08d19123ead (patch) | |
tree | ec4b185b78edb52f3e4b04e9753dc9f5a69d1884 | |
parent | 7036e503d73ce3e4f69f6f7fa81efabeda00fd37 (diff) | |
download | bcm5719-llvm-fc69e7d65b51bbaf17d7a0330beec08d19123ead.tar.gz bcm5719-llvm-fc69e7d65b51bbaf17d7a0330beec08d19123ead.zip |
Cast variable to void to resolve unused variable warning in non-asserts builds.
llvm-svn: 255704
-rw-r--r-- | llvm/lib/Transforms/IPO/CrossDSOCFI.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/CrossDSOCFI.cpp b/llvm/lib/Transforms/IPO/CrossDSOCFI.cpp index 66abf7078af..a91ee845159 100644 --- a/llvm/lib/Transforms/IPO/CrossDSOCFI.cpp +++ b/llvm/lib/Transforms/IPO/CrossDSOCFI.cpp @@ -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()); } |