AtomicExpandPass: mark assert variable as used
authorJF Bastien <jfb@google.com>
Mon, 11 Apr 2016 23:03:54 +0000 (23:03 +0000)
committerJF Bastien <jfb@google.com>
Mon, 11 Apr 2016 23:03:54 +0000 (23:03 +0000)
Avoid -Wunused-variable

llvm-svn: 266016

llvm/lib/CodeGen/AtomicExpandPass.cpp

index 3f84580..6d69de1 100644 (file)
@@ -1000,6 +1000,7 @@ void AtomicExpand::expandAtomicLoadToLibcall(LoadInst *I) {
   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::expandAtomicStoreToLibcall(StoreInst *I) {
   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::expandAtomicCASToLibcall(AtomicCmpXchgInst *I) {
       I, Size, Align, I->getPointerOperand(), I->getNewValOperand(),
       I->getCompareOperand(), I->getSuccessOrdering(), I->getFailureOrdering(),
       Libcalls);
+  (void)expanded;
   assert(expanded && "expandAtomicOpToLibcall shouldn't fail tor CAS");
 }