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;
|
return false;
|
||||||
} else if (const auto *MD = dyn_cast<MemoryDef>(&MA))
|
} else if (const auto *MD = dyn_cast<MemoryDef>(&MA))
|
||||||
if (auto *LI = dyn_cast<LoadInst>(MD->getMemoryInst())) {
|
if (auto *LI = dyn_cast<LoadInst>(MD->getMemoryInst())) {
|
||||||
|
(void)LI; // Silence warning.
|
||||||
assert(!LI->isUnordered() && "Expected unordered load");
|
assert(!LI->isUnordered() && "Expected unordered load");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue