Fix unused variable warning.

llvm-svn: 293260
This commit is contained in:
Richard Trieu 2017-01-27 06:06:05 +00:00
parent 26c00e3700
commit 0b79aa3373
1 changed files with 1 additions and 0 deletions

View File

@ -2402,6 +2402,7 @@ bool NewGVN::eliminateInstructions(Function &F) {
continue;
assert(!EliminationStack.empty());
Instruction *Leader = cast<Instruction>(EliminationStack.back());
(void)Leader;
assert(DT->dominates(Leader->getParent(), Member->getParent()));
// Member is dominater by Leader, and thus dead
DEBUG(dbgs() << "Marking dead store " << *Member