]> granicus.if.org Git - llvm/commitdiff
Silence warning about unused variable in builds without asserts [NFC]
authorMikael Holmen <mikael.holmen@ericsson.com>
Thu, 21 Mar 2019 07:54:44 +0000 (07:54 +0000)
committerMikael Holmen <mikael.holmen@ericsson.com>
Thu, 21 Mar 2019 07:54:44 +0000 (07:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356648 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LICM.cpp

index 8c4d2cd314f8ca3a52ea70819f0ac7267b8bbfeb..9efc3d217e401638312503e34df9e732c639ef1e 100644 (file)
@@ -1213,6 +1213,7 @@ bool llvm::canSinkOrHoistInst(Instruction &I, AAResults *AA, DominatorTree *DT,
                 return false;
             } else if (const auto *MD = dyn_cast<MemoryDef>(&MA))
               if (auto *LI = dyn_cast<LoadInst>(MD->getMemoryInst())) {
+                (void)LI; // Silence warning.
                 assert(!LI->isUnordered() && "Expected unordered load");
                 return false;
               }