[llvm] r266016 - AtomicExpandPass: mark assert variable as used

JF Bastien via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 11 16:03:54 PDT 2016


Author: jfb
Date: Mon Apr 11 18:03:54 2016
New Revision: 266016

URL: http://llvm.org/viewvc/llvm-project?rev=266016&view=rev
Log:
AtomicExpandPass: mark assert variable as used

Avoid -Wunused-variable

Modified:
    llvm/trunk/lib/CodeGen/AtomicExpandPass.cpp

Modified: llvm/trunk/lib/CodeGen/AtomicExpandPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AtomicExpandPass.cpp?rev=266016&r1=266015&r2=266016&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AtomicExpandPass.cpp (original)
+++ llvm/trunk/lib/CodeGen/AtomicExpandPass.cpp Mon Apr 11 18:03:54 2016
@@ -1000,6 +1000,7 @@ void AtomicExpand::expandAtomicLoadToLib
   bool expanded = expandAtomicOpToLibcall(
       I, Size, Align, I->getPointerOperand(), nullptr, nullptr,
       I->getOrdering(), AtomicOrdering::NotAtomic, Libcalls);
+  (void)expanded;
   assert(expanded && "expandAtomicOpToLibcall shouldn't fail tor Load");
 }
 
@@ -1013,6 +1014,7 @@ void AtomicExpand::expandAtomicStoreToLi
   bool expanded = expandAtomicOpToLibcall(
       I, Size, Align, I->getPointerOperand(), I->getValueOperand(), nullptr,
       I->getOrdering(), AtomicOrdering::NotAtomic, Libcalls);
+  (void)expanded;
   assert(expanded && "expandAtomicOpToLibcall shouldn't fail tor Store");
 }
 
@@ -1028,6 +1030,7 @@ void AtomicExpand::expandAtomicCASToLibc
       I, Size, Align, I->getPointerOperand(), I->getNewValOperand(),
       I->getCompareOperand(), I->getSuccessOrdering(), I->getFailureOrdering(),
       Libcalls);
+  (void)expanded;
   assert(expanded && "expandAtomicOpToLibcall shouldn't fail tor CAS");
 }
 




More information about the llvm-commits mailing list