[llvm] r175981 - Add a use of an otherwise unused variable to remove a warning in non-Asserts

Cameron Zwarich zwarich at apple.com
Sat Feb 23 17:26:05 PST 2013


Author: zwarich
Date: Sat Feb 23 19:26:05 2013
New Revision: 175981

URL: http://llvm.org/viewvc/llvm-project?rev=175981&view=rev
Log:
Add a use of an otherwise unused variable to remove a warning in non-Asserts
builds.

Modified:
    llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp

Modified: llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp?rev=175981&r1=175980&r2=175981&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp (original)
+++ llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp Sat Feb 23 19:26:05 2013
@@ -1220,6 +1220,7 @@ tryInstructionTransform(MachineBasicBloc
         MachineBasicBlock::iterator NewMI = NewMIs[1];
         bool TransformResult =
           tryInstructionTransform(NewMI, mi, NewSrcIdx, NewDstIdx, Dist, true);
+        (void)TransformResult;
         assert(!TransformResult &&
                "tryInstructionTransform() should return false.");
         if (NewMIs[1]->getOperand(NewSrcIdx).isKill()) {





More information about the llvm-commits mailing list