[llvm-commits] [llvm] r117023 - /llvm/trunk/lib/Transforms/IPO/MergeFunctions.cpp
Duncan Sands
baldrick at free.fr
Thu Oct 21 09:05:44 PDT 2010
Author: baldrick
Date: Thu Oct 21 11:05:44 2010
New Revision: 117023
URL: http://llvm.org/viewvc/llvm-project?rev=117023&view=rev
Log:
RetOp is not actually used for anything useful (though
it looks like maybe it was supposed to be used in the
test...), so zap it (gcc-4.6 warning).
Modified:
llvm/trunk/lib/Transforms/IPO/MergeFunctions.cpp
Modified: llvm/trunk/lib/Transforms/IPO/MergeFunctions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/MergeFunctions.cpp?rev=117023&r1=117022&r2=117023&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/MergeFunctions.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/MergeFunctions.cpp Thu Oct 21 11:05:44 2010
@@ -721,11 +721,9 @@
// Verify that the terminator is a ret void (if we're void) or a ret of the
// call's return, or a ret of a bitcast of the call's return.
- const Value *RetOp = CI;
if (const BitCastInst *BCI = dyn_cast<BitCastInst>(I)) {
++I;
if (BCI->getOperand(0) != CI) return false;
- RetOp = BCI;
}
if (RI != I) return false;
if (RI->getNumOperands() == 0)
More information about the llvm-commits
mailing list