[PATCH] D35280: Fix unused variable warnings

Konstantin Zhuravlyov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 11 17:16:22 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL307740: Fix unused variable warnings (authored by kzhuravl).

Changed prior to commit:
  https://reviews.llvm.org/D35280?vs=106118&id=106119#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D35280

Files:
  llvm/trunk/lib/IR/LLVMContext.cpp


Index: llvm/trunk/lib/IR/LLVMContext.cpp
===================================================================
--- llvm/trunk/lib/IR/LLVMContext.cpp
+++ llvm/trunk/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.106119.patch
Type: text/x-patch
Size: 651 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170712/71f539d9/attachment.bin>


More information about the llvm-commits mailing list