summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/MergeFunctions.cpp
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
commit2b55f56df8a69dd2fc057626e314cdf29d7c10ed (patch)
tree71ec4e297cc6a95acbe55124bc85f096231cb41e /lib/Transforms/IPO/MergeFunctions.cpp
parent9bc20ca72839299029eb0d0f34ecdea7c376299e (diff)
downloadllvm-2b55f56df8a69dd2fc057626e314cdf29d7c10ed.tar.gz
llvm-2b55f56df8a69dd2fc057626e314cdf29d7c10ed.tar.bz2
llvm-2b55f56df8a69dd2fc057626e314cdf29d7c10ed.tar.xz
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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117023 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/MergeFunctions.cpp')
-rw-r--r--lib/Transforms/IPO/MergeFunctions.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/MergeFunctions.cpp b/lib/Transforms/IPO/MergeFunctions.cpp
index 3a35739a84..9cfbcc8dae 100644
--- a/lib/Transforms/IPO/MergeFunctions.cpp
+++ b/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)