forked from OSchip/llvm-project
Silence warning about unused variable in builds without asserts [NFC]
llvm-svn: 356648
This commit is contained in:
parent
32cffcf1ab
commit
5b1754f93d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue