Silence warning about unused variable in builds without asserts [NFC]

llvm-svn: 356648
This commit is contained in:
Mikael Holmen 2019-03-21 07:54:44 +00:00
parent 32cffcf1ab
commit 5b1754f93d
1 changed files with 1 additions and 0 deletions

View 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;
}