Fix unused variable warnings

Differential Revision: https://reviews.llvm.org/D35280

llvm-svn: 307740
This commit is contained in:
Konstantin Zhuravlyov
2017-07-12 00:15:53 +00:00
parent 11fe7beda9
commit 878fdee0cf

View File

@@ -86,11 +86,13 @@ LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) {
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; }