[llvm] r293260 - Fix unused variable warning.

Richard Trieu via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 26 22:06:06 PST 2017


Author: rtrieu
Date: Fri Jan 27 00:06:05 2017
New Revision: 293260

URL: http://llvm.org/viewvc/llvm-project?rev=293260&view=rev
Log:
Fix unused variable warning.

Modified:
    llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp?rev=293260&r1=293259&r2=293260&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp Fri Jan 27 00:06:05 2017
@@ -2402,6 +2402,7 @@ bool NewGVN::eliminateInstructions(Funct
           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




More information about the llvm-commits mailing list