summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-10-21 16:05:44 +0000
committerDuncan Sands <baldrick@free.fr>2010-10-21 16:05:44 +0000
commit94da154558665304b57fb146e22124938ed6f9a0 (patch)
treea87db22557b9fe7121b7ec252c9fefeff9e70b46 /llvm/lib/Transforms
parent2f16b91ce0707291bd51fa62089603f7d9ac699d (diff)
downloadbcm5719-llvm-94da154558665304b57fb146e22124938ed6f9a0.tar.gz
bcm5719-llvm-94da154558665304b57fb146e22124938ed6f9a0.zip
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). llvm-svn: 117023
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/MergeFunctions.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/MergeFunctions.cpp b/llvm/lib/Transforms/IPO/MergeFunctions.cpp
index 3a35739a84d..9cfbcc8dae9 100644
--- a/llvm/lib/Transforms/IPO/MergeFunctions.cpp
+++ b/llvm/lib/Transforms/IPO/MergeFunctions.cpp
@@ -721,11 +721,9 @@ static bool IsThunk(const Function *F) {
// 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)
OpenPOWER on IntegriCloud