[PATCH] D35280: Fix unused variable warnings
Konstantin Zhuravlyov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 11 17:00:35 PDT 2017
kzhuravl created this revision.
Herald added a subscriber: wdng.
As seen on http://lab.llvm.org:8011/builders/clang-x86_64-linux-selfhost-modules-2/builds/9546/steps/compile.llvm.stage2/logs/warnings%20%282%29
https://reviews.llvm.org/D35280
Files:
lib/IR/LLVMContext.cpp
Index: lib/IR/LLVMContext.cpp
===================================================================
--- lib/IR/LLVMContext.cpp
+++ lib/IR/LLVMContext.cpp
@@ -86,11 +86,13 @@
pImpl->getOrInsertSyncScopeID("singlethread");
assert(SingleThreadSSID == SyncScope::SingleThread &&
"singlethread synchronization scope ID drifted!");
+ (void)SingleThreadSSID;
SyncScope::ID SystemSSID =
pImpl->getOrInsertSyncScopeID("");
assert(SystemSSID == SyncScope::System &&
"system synchronization scope ID drifted!");
+ (void)SystemSSID;
}
LLVMContext::~LLVMContext() { delete pImpl; }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35280.106118.patch
Type: text/x-patch
Size: 618 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170712/21721e14/attachment-0001.bin>
More information about the llvm-commits
mailing list