diff options
author | Duncan Sands <baldrick@free.fr> | 2010-10-21 16:05:44 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-10-21 16:05:44 +0000 |
commit | 94da154558665304b57fb146e22124938ed6f9a0 (patch) | |
tree | a87db22557b9fe7121b7ec252c9fefeff9e70b46 /llvm/lib/Transforms/IPO/MergeFunctions.cpp | |
parent | 2f16b91ce0707291bd51fa62089603f7d9ac699d (diff) | |
download | bcm5719-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/IPO/MergeFunctions.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/MergeFunctions.cpp | 2 |
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) |