summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2017-01-27 06:06:05 +0000
committerRichard Trieu <rtrieu@google.com>2017-01-27 06:06:05 +0000
commit0b79aa3373299cf60417c353630ccd0f366a10d5 (patch)
tree07507ab6a823c030e4a7f7fe34a429bceb7282ca
parent26c00e3700078e021d8742ef6a18ac7736c434c9 (diff)
downloadbcm5719-llvm-0b79aa3373299cf60417c353630ccd0f366a10d5.tar.gz
bcm5719-llvm-0b79aa3373299cf60417c353630ccd0f366a10d5.zip
Fix unused variable warning.
llvm-svn: 293260
-rw-r--r--llvm/lib/Transforms/Scalar/NewGVN.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp
index f8c746be15c..7b9e19bc91f 100644
--- a/llvm/lib/Transforms/Scalar/NewGVN.cpp
+++ b/llvm/lib/Transforms/Scalar/NewGVN.cpp
@@ -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
OpenPOWER on IntegriCloud